From: pdontthink Date: Tue, 26 Feb 2008 19:54:15 +0000 (+0000) Subject: Prevent PHP notices when possible values is not given X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=dd6f96279bebfdf151c1be4301fbac5696f89994;ds=sidebyside Prevent PHP notices when possible values is not given git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12968 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/options.php b/functions/options.php index 41922b55..78e0bea0 100644 --- a/functions/options.php +++ b/functions/options.php @@ -590,6 +590,8 @@ class SquirrelOption { $height = 5; } + if (empty($this->possible_values)) $this->possible_values = array(); + //FIXME: $this->aExtraAttribs probably should only be used in one place $oTemplate->assign('input_widget', addInput('add_' . $this->name, '', 38, 0, $this->aExtraAttribs)); $oTemplate->assign('trailing_text', $this->trailing_text);