This commit is contained in:
Isaac Connor 2018-01-26 10:39:12 -05:00
parent 209093a4c6
commit 475c465b0d
1 changed files with 3 additions and 2 deletions

View File

@ -152,8 +152,9 @@ class MonitorsController extends AppController {
return;
}
$message = '';
if ( $this->Monitor->save($this->request->data) ) {
$message .= 'Saved';
$message = 'Saved';
$Monitor = $this->Monitor->find('first', array(
'fields' => array('Function','ServerId'),
'conditions' => array('Id' => $id)
@ -167,7 +168,7 @@ class MonitorsController extends AppController {
$this->daemonControl( $this->Monitor->id, 'start' );
}
} else {
$message .= 'Error ' . print_r($this->Monitor->invalidFields(), true);
$message = 'Error ' . print_r($this->Monitor->invalidFields(), true);
}
$this->set(array(