A couple of minor PHP 8 fixes that can be applied now

This commit is contained in:
Ana Els
2021-01-18 15:18:40 +00:00
committed by MatthieuLP
parent c64efe6ecb
commit 65acb988db
11 changed files with 27 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ define('PHPWG_ROOT_PATH','./');
// 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(function_exists('get_magic_quotes_gpc') && !@get_magic_quotes_gpc() )
{
if( is_array($_POST) )
{