From d4498f23c00e614f128ed5df4ccb3ca7fab4e788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20Rosen=C3=B6gger?= <123haynes@gmail.com> Date: Mon, 1 Feb 2016 20:30:30 +0100 Subject: [PATCH] remove unnecessary warning. Without the $GLOBALS["___mysqli_ston"] being present the code would fail much earlier. It doesn't make sense to check it only here. --- inc/functions_dump.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions_dump.php b/inc/functions_dump.php index 1a30aea..af03bbd 100644 --- a/inc/functions_dump.php +++ b/inc/functions_dump.php @@ -185,7 +185,7 @@ function get_content($db,$table) { if (!isset($row[$j])) $insert.='NULL,'; else - if ($row[$j]!='') $insert.='\''.((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $row[$j]) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")).'\','; + if ($row[$j]!='') $insert.='\''. mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $row[$j]) .'\','; else $insert.='\'\','; }