diff options
author | patdenice <patdenice@piwigo.org> | 2009-10-09 14:38:54 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-10-09 14:38:54 +0000 |
commit | 57225129b276b7e3494df4b027c0daeed02ca11b (patch) | |
tree | 8379a8477b5ac96b929dce59e9bbfeaa48a58c47 /install.php | |
parent | 6de7f6179c80b5ec15ab249c3fc20a30ad899b41 (diff) |
set_magic_quote_runtime and get_magic_quote_gpc are depreciated and can produce notices from PHP 5.3.
Add a @ to avoid this notices.
This functions need to be removed with PHP 6
git-svn-id: http://piwigo.org/svn/branches/2.0@4005 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php index 86cb17dea..ac317e8be 100644 --- a/install.php +++ b/install.php @@ -72,12 +72,12 @@ function execute_sqlfile($filepath, $replaced, $replacing) } } -set_magic_quotes_runtime(0); // Disable magic_quotes_runtime +@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime // // addslashes to vars if magic_quotes_gpc is off this is a security // precaution to prevent someone trying to break out of a SQL statement. // -if( !get_magic_quotes_gpc() ) +if( !@get_magic_quotes_gpc() ) { if( is_array($_POST) ) { |