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
This commit is contained in:
patdenice
2009-10-09 14:38:54 +00:00
parent 6de7f6179c
commit 57225129b2
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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);
}