silence error when Event has no StorageId set

This commit is contained in:
Isaac Connor 2016-08-12 15:20:21 -04:00
parent 1058796374
commit 240336e3ec
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class Event {
} }
} // end function __construct } // end function __construct
public function Storage() { public function Storage() {
return new Storage( $this->{'StorageId'} ); return new Storage( isset($this->{'StorageId'}) ? $this->{'StorageId'} : NULL );
} }
public function __call( $fn, array $args){ public function __call( $fn, array $args){
if(isset($this->{$fn})){ if(isset($this->{$fn})){