diff --git a/airtime_mvc/application/controllers/PreferenceController.php b/airtime_mvc/application/controllers/PreferenceController.php index 1b97672f8..d9acf7411 100644 --- a/airtime_mvc/application/controllers/PreferenceController.php +++ b/airtime_mvc/application/controllers/PreferenceController.php @@ -49,7 +49,11 @@ class PreferenceController extends Zend_Controller_Action $logoUploadElement = $form->getSubForm('preferences_general')->getElement('stationLogo'); $logoUploadElement->receive(); $imagePath = $logoUploadElement->getFileName(); - Application_Model_Preference::SetStationLogo($imagePath); + + // Only update the image logo if the new logo is non-empty + if (!is_null($imagePath) && $imagePath != "") { + Application_Model_Preference::SetStationLogo($imagePath); + } Application_Model_Preference::SetUploadToSoundcloudOption($values["UploadToSoundcloudOption"]); Application_Model_Preference::SetSoundCloudDownloadbleOption($values["SoundCloudDownloadbleOption"]);