Improve error message when a row doesn't exist in the Monitor_Status table

This commit is contained in:
Isaac Connor 2020-10-14 11:32:33 -04:00
parent 86e744777c
commit e9fb150880
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class Monitor extends ZM_Object {
FROM `Monitor_Status` WHERE `MonitorId`=?';
$row = dbFetchOne($sql, NULL, array($this->{'Id'}));
if ( !$row ) {
Error('Unable to load Monitor record for Id='.$this->{'Id'});
Warning('Unable to load Monitor status record for Id='.$this->{'Id'}.' using '.$sql);
foreach ( $this->status_fields as $k => $v ) {
$this->{$k} = $v;
}