Fix Event->Storage()

This commit is contained in:
Isaac Connor 2018-04-15 10:26:38 -04:00
parent 279e437545
commit bef7098cb4
1 changed files with 16 additions and 18 deletions

View File

@ -51,9 +51,7 @@ class Event {
if ( ! ( array_key_exists('Storage', $this) and $this->{'Storage'} ) ) {
if ( isset($this->{'StorageId'}) and $this->{'StorageId'} )
$this->{'Storage'} = Storage::find_one(array('Id'=>$this->{'StorageId'}));
if ( ! $this->{'Storage'} )
$this->{'Storage'} = new Storage(NULL);
} else {
if ( ! ( array_key_exists('Storage', $this) and $this->{'Storage'} ) )
$this->{'Storage'} = new Storage(NULL);
}
return $this->{'Storage'};
@ -100,7 +98,7 @@ class Event {
$event_path = $this->{'MonitorId'} .'/'.$this->{'Id'};
}
return( $event_path );
return $event_path;
} // end function Relative_Path()
public function Link_Path() {