From 2ebfc729f54a83cc218daf987242f595ba990977 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 28 Feb 2008 06:35:00 +0000 Subject: [PATCH] Guarantee we have an array git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12976 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/options.php | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.25.1