mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
A couple of minor PHP 8 fixes that can be applied now
This commit is contained in:
@@ -17,7 +17,7 @@ $t2 = microtime(true);
|
||||
// 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() )
|
||||
{
|
||||
function sanitize_mysql_kv(&$v, $k)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user