Fixed custom field select options removed empty label if there was white space after options

This commit is contained in:
Nathan Gray 2015-05-19 19:59:59 +00:00
parent a6ba6ab17e
commit 0b0b11c4f0

View File

@ -324,7 +324,7 @@ class customfields
} }
else 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); list($var,$value) = explode('=',trim($line),2);
$var = trim($var); $var = trim($var);