From e01c72ea577822d576f7ee3b661e12f30f260285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81ro=CC=82me=20Gamez?= Date: Thu, 17 Oct 2013 16:16:48 +0200 Subject: [PATCH] EZP-21773: Set reference to false if setting is empty --- lib/ezimage/classes/ezimagemanager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ezimage/classes/ezimagemanager.php b/lib/ezimage/classes/ezimagemanager.php index 5b7be69ce6c..31004481b9c 100644 --- a/lib/ezimage/classes/ezimagemanager.php +++ b/lib/ezimage/classes/ezimagemanager.php @@ -765,7 +765,10 @@ function createAliasFromINI( $iniGroup ) $alias['filters'] = $filters; } if ( $ini->hasVariable( $iniGroup, 'Reference' ) ) - $alias['reference'] = $ini->variable( $iniGroup, 'Reference' ); + { + $alias['reference'] = trim( $ini->variable( $iniGroup, 'Reference' ) ); + $alias['reference'] = ( $alias['reference'] !== '' ) ? $alias['reference'] : false; + } return $alias; }