fix error message

This commit is contained in:
Isaac Connor 2017-11-08 11:17:46 -05:00
parent 625170bffc
commit 59a87c14d3
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ if ( 0 ) {
Warning("SQL: $sql: rows:" . $result->rowCount() ); Warning("SQL: $sql: rows:" . $result->rowCount() );
} }
} catch(PDOException $e) { } catch(PDOException $e) {
Error( "SQL-ERR '".$e->getMessage()."', statement was '".$sql."' params:" . $params?implode(',',$params):'' ); Error( "SQL-ERR '".$e->getMessage()."', statement was '".$sql."' params:" . ($params?implode(',',$params):'') );
} }
return( $result ); return( $result );
} }