From 57225129b276b7e3494df4b027c0daeed02ca11b Mon Sep 17 00:00:00 2001 From: patdenice Date: Fri, 9 Oct 2009 14:38:54 +0000 Subject: 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 --- admin/include/functions_upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/include/functions_upgrade.php') diff --git a/admin/include/functions_upgrade.php b/admin/include/functions_upgrade.php index 3181946eb..c7aa23873 100644 --- a/admin/include/functions_upgrade.php +++ b/admin/include/functions_upgrade.php @@ -136,7 +136,7 @@ function check_upgrade_access_rights($current_release, $username, $password) { global $conf, $page; - if(!get_magic_quotes_gpc()) + if(!@get_magic_quotes_gpc()) { $username = mysql_real_escape_string($username); } -- cgit v1.2.3