From 5dfadf6ecc5dd6e7ba4f590ea2f22eb67e015fe6 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Thu, 18 Sep 2014 16:35:32 -0400 Subject: [PATCH] Changed check for image deletion --- airtime_mvc/application/services/ShowService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/services/ShowService.php b/airtime_mvc/application/services/ShowService.php index fbf319f64..e651f6168 100644 --- a/airtime_mvc/application/services/ShowService.php +++ b/airtime_mvc/application/services/ShowService.php @@ -202,7 +202,7 @@ class Application_Service_ShowService $showId = $this->ccShow->getDbId(); // Only delete the previous logo if a new one is being uploaded - if ($showData["show_logo"] && $showData["show_logo_name"] !== "") { + if (array_key_exists("add_show_logo_name", $showData) && $showData["add_show_logo_name"] !== "") { if (!Rest_ShowController::deleteShowImagesFromStor($showId)) { throw new Exception("Error deleting show images"); }