spacing, remove debug lines
This commit is contained in:
parent
929e49c301
commit
68521aa0d4
|
@ -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 ) ) ) {
|
||||
|
|
Loading…
Reference in New Issue