From: dongsheng Date: Thu, 1 May 2008 08:32:04 +0000 (+0000) Subject: "MDL-7362, allow_call_time_pass_reference setting may cause bug, see tracker, merged... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=64fcd675f796a32a08784296594c176c5e92a7d8;p=moodle.git "MDL-7362, allow_call_time_pass_reference setting may cause bug, see tracker, merged from MOODLE_19_STABLE, thanks James" --- diff --git a/mod/chat/chatd.php b/mod/chat/chatd.php index d5c595fe67..d8d34fa483 100755 --- a/mod/chat/chatd.php +++ b/mod/chat/chatd.php @@ -44,7 +44,8 @@ if(!empty($safemode)) { die("Error: Cannot run with PHP safe_mode = On. Turn off safe_mode in php.ini.\n"); } -if(ini_get('allow_call_time_pass_reference') == '0') { +$passref = ini_get('allow_call_time_pass_reference'); +if(empty($passref)) { die("Error: Cannot run with PHP allow_call_time_pass_reference = Off. Turn on allow_call_time_pass_reference in php.ini.\n"); }