mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
A couple of minor PHP 8 fixes that can be applied now
This commit is contained in:
@@ -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) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user