aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/include/functions_upgrade.php2
-rw-r--r--include/common.inc.php4
-rw-r--r--install.php4
3 files changed, 5 insertions, 5 deletions
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);
}
diff --git a/include/common.inc.php b/include/common.inc.php
index 84da13e4f..798b36db4 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -28,13 +28,13 @@ $t1 = explode( ' ', microtime() );
$t2 = explode( '.', $t1[0] );
$t2 = $t1[1].'.'.$t2[1];
-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() )
{
function sanitize_mysql_kv(&$v, $k)
{
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) )
{