From: pdontthink Date: Thu, 28 Feb 2008 06:35:00 +0000 (+0000) Subject: Guarantee we have an array X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=2ebfc729f54a83cc218daf987242f595ba990977 Guarantee we have an array git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12976 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/options.php b/functions/options.php index d05f3af7..036e43c7 100644 --- a/functions/options.php +++ b/functions/options.php @@ -591,6 +591,7 @@ class SquirrelOption { } if (empty($this->possible_values)) $this->possible_values = array(); + if (!is_array($this->possible_values)) $this->possible_values = array($this->possible_values); //FIXME: $this->aExtraAttribs probably should only be used in one place $oTemplate->assign('input_widget', addInput('add_' . $this->name, '', 38, 0, $this->aExtraAttribs));