From f50c0e2096917f9c73f1adc08f55f4b1bdd3e4bd Mon Sep 17 00:00:00 2001 From: Manojav Sridhar <manojav@manojav.com> Date: Sat, 18 Feb 2017 11:15:43 -0500 Subject: [PATCH] fix missing isset check, caused number of Undefined Property warnings --- web/includes/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/Event.php b/web/includes/Event.php index e9ecd4bae..11a8f4faa 100644 --- a/web/includes/Event.php +++ b/web/includes/Event.php @@ -196,7 +196,7 @@ class Event { } // end function createListThumbnail function getImageSrc( $frame, $scale=SCALE_BASE, $captureOnly=false, $overwrite=false ) { - $Storage = new Storage( $this->{'StorageId'} ); + $Storage = new Storage( isset($this->{'StorageId'}) ? $this->{'StorageId'} : NULL ); $Event = $this; $eventPath = $Event->Path();