Issue 4396: WSOD with uimport
This commit is contained in:
parent
bcd896c604
commit
3e456ddcb8
|
@ -68,7 +68,7 @@ class UserImport
|
||||||
unset($arr['id']);
|
unset($arr['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
self::check_cols($table, $arr);
|
self::checkCols($table, $arr);
|
||||||
$cols = implode("`,`", array_map('dbesc', array_keys($arr)));
|
$cols = implode("`,`", array_map('dbesc', array_keys($arr)));
|
||||||
$vals = implode("','", array_map('dbesc', array_values($arr)));
|
$vals = implode("','", array_map('dbesc', array_values($arr)));
|
||||||
$query = "INSERT INTO `$table` (`$cols`) VALUES ('$vals')";
|
$query = "INSERT INTO `$table` (`$cols`) VALUES ('$vals')";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user