mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-19 21:21:54 -04:00
handle when sql error occurs and no params given
This commit is contained in:
1 parent
f39353a4a3
commit
63c788ef0e
1 file changed
+1
-1
@@ -141,7 +141,7 @@ if ( 0 ) {
|
||||
Warning("SQL: $sql: rows:" . $result->rowCount() );
|
||||
}
|
||||
} catch(PDOException $e) {
|
||||
Error( "SQL-ERR '".$e->getMessage()."', statement was '".$sql."' params:" . implode(',',$params) );
|
||||
Error( "SQL-ERR '".$e->getMessage()."', statement was '".$sql."' params:" . $params?implode(',',$params):'' );
|
||||
}
|
||||
return( $result );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user