1
0
Fork 0

Merge pull request #4461 from annando/bugfix-uimport

Issue 4396: WSOD with uimport
This commit is contained in:
Hypolite Petovan 2018-02-14 18:32:11 -05:00 committed by GitHub
commit 029df40b87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ class UserImport
unset($arr['id']);
}
self::check_cols($table, $arr);
self::checkCols($table, $arr);
$cols = implode("`,`", array_map('dbesc', array_keys($arr)));
$vals = implode("','", array_map('dbesc', array_values($arr)));
$query = "INSERT INTO `$table` (`$cols`) VALUES ('$vals')";