spacing, remove debug lines

This commit is contained in:
Isaac Connor 2018-02-02 10:27:50 -05:00
parent 929e49c301
commit 68521aa0d4
1 changed files with 4 additions and 5 deletions

View File

@ -496,7 +496,6 @@ Logger::Debug("Auto selecting server to " . ZM_SERVER_ID);
}
$columns = getTableColumns( 'Monitors' );
Logger::Debug('coloumns:'.print_r($columns));
$changes = getFormChanges( $monitor, $_REQUEST['newMonitor'], $types, $columns );
if ( count( $changes ) ) {
@ -553,7 +552,7 @@ Logger::Debug('coloumns:'.print_r($columns));
$restart = true;
} else if ( ! $user['MonitorIds'] ) { // Can only create new monitors if we are not restricted to specific monitors
# FIXME This is actually a race condition. Should lock the table.
$maxSeq = dbFetchOne( 'SELECT max(Sequence) AS MaxSequence FROM Monitors', 'MaxSequence' );
$maxSeq = dbFetchOne('SELECT MAX(Sequence) AS MaxSequence FROM Monitors', 'MaxSequence');
$changes[] = 'Sequence = '.($maxSeq+1);
if ( dbQuery( 'INSERT INTO Monitors SET '.implode( ', ', $changes ) ) ) {