From b8468965ec9278112b0798a45b09032ce904753a Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 18 Sep 2010 11:06:12 +0000 Subject: [PATCH] fixed invalid return --- lib/profilerlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/profilerlib.php b/lib/profilerlib.php index 43d26e2e93f..dcded905caf 100755 --- a/lib/profilerlib.php +++ b/lib/profilerlib.php @@ -178,7 +178,7 @@ class Profiler list($index, $file, $line) = preg_split("/ /",$data, 3); if(array_key_exists('i',$opt) && $symbol_type[$index] == 1) { continue; - } + } $index_cur = $index; $calls[$index_cur]++; array_push($callstack, $index_cur); @@ -261,7 +261,7 @@ class Profiler if(array_key_exists('U', $opt)) { $sort = 'by_c_utime'; } if(array_key_exists('Z', $opt)) { $sort = 'by_c_time'; } if( !count($symbol_hash)) { - continue; + return NULL; } $retstring .= sprintf(" -- 2.43.0