Fix Event->Storage()
This commit is contained in:
parent
279e437545
commit
bef7098cb4
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue