1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 00:28:34 +02:00

Fix compatibility with PHP 8

This commit is contained in:
David Grudl
2020-10-20 21:04:33 +02:00
committed by Jakub Vrana
parent 697eedc6a1
commit 50bb83dbf2
5 changed files with 21 additions and 12 deletions

View File

@@ -62,7 +62,7 @@ function number_type() {
* @return null modified in place
*/
function remove_slashes($process, $filter = false) {
if (get_magic_quotes_gpc()) {
if (function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc()) {
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);