Skip to content

Commit

Permalink
Adding "function_exists" check before using "ini_set" in Debugger::__…
Browse files Browse the repository at this point in the history
…construct(). Fixes #1209
  • Loading branch information
ADmad committed Oct 19, 2010
1 parent 1c25e62 commit ffc77aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/debugger.php
Expand Up @@ -120,7 +120,7 @@ class Debugger extends Object {
function __construct() {
$docRef = ini_get('docref_root');

if (empty($docRef)) {
if (empty($docRef) && function_exists('ini_set')) {
ini_set('docref_root', 'http://php.net/');
}
if (!defined('E_RECOVERABLE_ERROR')) {
Expand Down

0 comments on commit ffc77aa

Please sign in to comment.