whitespace
This commit is contained in:
parent
924fa80ea6
commit
97595051ce
|
@ -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):'') );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue