fixed invalid return
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:06:12 +0000 (11:06 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:06:12 +0000 (11:06 +0000)
lib/profilerlib.php

index 43d26e2..dcded90 100755 (executable)
@@ -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("