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:58:43 +00:00
parent 69f1fc4696
commit 1beba97dcf

View File

@ -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);