1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 12:41:51 +02:00

Merge pull request #2420 from dimante/master

Database backup fix for PHP 7+
This commit is contained in:
Cameron 2017-02-12 09:28:10 -08:00 committed by GitHub
commit 361740f83c

View File

@ -2583,7 +2583,7 @@ class e_db_mysql
$d = array();
foreach($fields as $val)
{
$d[] = is_numeric($row[$val]) ? $row[$val] : "'".mysql_real_escape_string($row[$val])."'";
$d[] = is_numeric($row[$val]) ? $row[$val] : "'".mysqli_real_escape_string($row[$val])."'";
}
$data_array = "(".implode(", ",$d).");\n";