whitespace

This commit is contained in:
Isaac Connor 2018-01-22 11:42:19 -05:00
parent 924fa80ea6
commit 97595051ce
1 changed files with 6 additions and 6 deletions

View File

@ -134,12 +134,12 @@ function dbQuery( $sql, $params=NULL ) {
} else { } else {
$result = $dbConn->query( $sql ); $result = $dbConn->query( $sql );
} }
if ( defined('ZM_DB_DEBUG') ) { if ( defined('ZM_DB_DEBUG') ) {
if ( $params ) if ( $params )
Warning("SQL: $sql" . implode(',',$params) . ' rows: '.$result->rowCount() ); Warning("SQL: $sql" . implode(',',$params) . ' rows: '.$result->rowCount() );
else else
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):'') );
} }