From f24afa16fbda7596d84a68614290c685f0c27156 Mon Sep 17 00:00:00 2001 From: Seb35 Date: Wed, 24 Jun 2015 16:35:40 +0200 Subject: [PATCH] CRM-16740 - No possibility to select "no premium image" --- CRM/Contribute/BAO/ManagePremiums.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/ManagePremiums.php b/CRM/Contribute/BAO/ManagePremiums.php index cac1213f61..2f048ab6e4 100644 --- a/CRM/Contribute/BAO/ManagePremiums.php +++ b/CRM/Contribute/BAO/ManagePremiums.php @@ -102,7 +102,7 @@ class CRM_Contribute_BAO_ManagePremiums extends CRM_Contribute_DAO_Product { // CRM-14283 - strip protocol and domain from image URLs $image_type = array('image', 'thumbnail'); foreach ($image_type as $key) { - if (isset($params[$key])) { + if (isset($params[$key]) && $params[$key]) { $parsedURL = explode('/', $params[$key]); $pathComponents = array_slice($parsedURL, 3); $params[$key] = '/' . implode('/', $pathComponents); -- 2.25.1