silence error when Event has no StorageId set
This commit is contained in:
parent
1058796374
commit
240336e3ec
|
@ -28,7 +28,7 @@ class Event {
|
|||
}
|
||||
} // end function __construct
|
||||
public function Storage() {
|
||||
return new Storage( $this->{'StorageId'} );
|
||||
return new Storage( isset($this->{'StorageId'}) ? $this->{'StorageId'} : NULL );
|
||||
}
|
||||
public function __call( $fn, array $args){
|
||||
if(isset($this->{$fn})){
|
||||
|
|
Loading…
Reference in New Issue