1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +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

View File

@@ -2583,7 +2583,7 @@ class e_db_mysql
$d = array(); $d = array();
foreach($fields as $val) 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"; $data_array = "(".implode(", ",$d).");\n";