mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-04-04 22:14:07 -04:00
handle when sql error occurs and no params given
This commit is contained in:
@@ -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