From 0b0b11c4f0d7955947cc86519e30c7892377a78f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 19 May 2015 19:59:59 +0000 Subject: [PATCH] Fixed custom field select options removed empty label if there was white space after options --- admin/inc/class.customfields.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.customfields.inc.php b/admin/inc/class.customfields.inc.php index c36211e36e..ebddb2a213 100644 --- a/admin/inc/class.customfields.inc.php +++ b/admin/inc/class.customfields.inc.php @@ -324,7 +324,7 @@ class customfields } else { - foreach(explode("\n",$content['cf_values']) as $line) + foreach(explode("\n",trim($content['cf_values'])) as $line) { list($var,$value) = explode('=',trim($line),2); $var = trim($var);