Index: branches/unlabeled/unlabeled-1.63.4/core/kernel/utility/debugger.php =================================================================== diff -u -r7474 -r7577 --- branches/unlabeled/unlabeled-1.63.4/core/kernel/utility/debugger.php (.../debugger.php) (revision 7474) +++ branches/unlabeled/unlabeled-1.63.4/core/kernel/utility/debugger.php (.../debugger.php) (revision 7577) @@ -822,6 +822,20 @@ } /** + * Returns profile total key (check against unexisting key too) + * + * @param string $key + * @return int + */ + function getProfilerTotal($key) + { + if (isset($this->ProfilerTotalCount[$key])) { + return (int)$this->ProfilerTotalCount[$key]; + } + return 0; + } + + /** * Generates report * */ @@ -941,12 +955,11 @@