Changed check for image deletion
This commit is contained in:
parent
6c0b94f9bb
commit
5dfadf6ecc
|
@ -202,7 +202,7 @@ class Application_Service_ShowService
|
||||||
$showId = $this->ccShow->getDbId();
|
$showId = $this->ccShow->getDbId();
|
||||||
|
|
||||||
// Only delete the previous logo if a new one is being uploaded
|
// 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)) {
|
if (!Rest_ShowController::deleteShowImagesFromStor($showId)) {
|
||||||
throw new Exception("Error deleting show images");
|
throw new Exception("Error deleting show images");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue