From: Domas Mituzas Date: Fri, 14 Jul 2006 20:25:11 +0000 (+0000) Subject: function_exists expects string with function name in it X-Git-Tag: 1.31.0-rc.0~56246 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=b8087c21cdd63eda470651cbeba9926ad2808765;p=lhc%2Fweb%2Fwiklou.git function_exists expects string with function name in it --- 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'] +