From b8087c21cdd63eda470651cbeba9926ad2808765 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Fri, 14 Jul 2006 20:25:11 +0000 Subject: [PATCH] function_exists expects string with function name in it --- includes/ProfilerSimple.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ProfilerSimple.php b/includes/ProfilerSimple.php index adc8585dc8..0f2b59a87b 100644 --- a/includes/ProfilerSimple.php +++ b/includes/ProfilerSimple.php @@ -86,7 +86,7 @@ class ProfilerSimple extends Profiler { } function getCpuTime($ru=null) { - if ( function_exists( getrusage() ) ) { + if ( function_exists( 'getrusage' ) ) { if ( $ru == null ) $ru = getrusage(); return ($ru['ru_utime.tv_sec'] + $ru['ru_stime.tv_sec'] + ($ru['ru_utime.tv_usec'] + -- 2.20.1