fix error printing
This commit is contained in:
parent
b9b52c964e
commit
daa9f646fb
|
@ -135,7 +135,7 @@ function dbQuery($sql, $params=NULL) {
|
|||
}
|
||||
|
||||
if ( ! $result->execute($params) ) {
|
||||
ZM\Error("SQL: Error executing $sql: " . implode(',', $result->errorInfo()));
|
||||
ZM\Error("SQL: Error executing $sql: " . print_r($result->errorInfo(), true));
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue