remove debug

pull/2077/head
Isaac Connor 2017-10-05 10:48:04 -04:00
parent b56a976d7a
commit 40972383c1
2 changed files with 4 additions and 6 deletions

View File

@ -164,12 +164,10 @@ public $defaults = array(
if ( $group['MonitorIds'] )
$groupIds = explode( ',', $group['MonitorIds'] );
Warning("Group ids" . implode(',',$groupIds) );
foreach ( dbFetchAll( 'SELECT MonitorIds FROM Groups WHERE ParentId = ?', NULL, array($group_id) ) as $group )
if ( $group['MonitorIds'] )
$groupIds = array_merge( $groupIds, explode( ',', $group['MonitorIds'] ) );
}
Warning("Group ids" . implode(',',$groupIds) );
$groupSql = " find_in_set( Id, '".implode( ',', $groupIds )."' )";
}
return $groupSql;

View File

@ -127,10 +127,10 @@ function dbQuery( $sql, $params=NULL ) {
} else {
$result = $dbConn->query( $sql );
}
if ( $params )
Warning("SQL: $sql" . implode(',',$params));
else
Warning("SQL: $sql" );
//if ( $params )
//Warning("SQL: $sql" . implode(',',$params));
//else
//Warning("SQL: $sql" );
} catch(PDOException $e) {
Fatal( "SQL-ERR '".$e->getMessage()."', statement was '".$sql."'" );
}