Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Ignore set_magic_quotes_runtime (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 18, 2013
1 parent 73b02c0 commit cf902ac
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1264,11 +1264,11 @@ function get_magic_quotes()
}
if (PHP_VERSION < 6) {
$magic_quotes = get_magic_quotes_runtime();
set_magic_quotes_runtime(0);
@set_magic_quotes_runtime(0);
}
$file_buffer = file_get_contents($path);
$file_buffer = $this->EncodeString($file_buffer, $encoding);
if (PHP_VERSION < 6) { set_magic_quotes_runtime($magic_quotes); }
if (PHP_VERSION < 6) { @set_magic_quotes_runtime($magic_quotes); }
return $file_buffer;
} catch (Exception $e) {
$this->SetError($e->getMessage());
Expand Down

0 comments on commit cf902ac

Please sign in to comment.