fixed a typo in insertRow()

This commit is contained in:
Jenny Tam 2017-10-06 15:02:19 -07:00
parent 3da164c638
commit 371a8c0442

View file

@ -355,7 +355,7 @@ function insertRow($conn, $tbname, $inputs, &$r = null, $api = INSERT_QUERY)
$insertSql = getInsertSqlPlaceholders($tbname, $inputs);
$params = array();
foreach ($inputs as $key => $input) {
if (!is_object($input)) {
if (is_object($input)) {
array_push($params, $input->bindParamArr($inputs[$key]));
} else {
array_push($params, $inputs[$key]);