From: <pdo...@us...> - 2008-02-26 19:54:19
|
Revision: 12968 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12968&view=rev Author: pdontthink Date: 2008-02-26 11:54:15 -0800 (Tue, 26 Feb 2008) Log Message: ----------- Prevent PHP notices when possible values is not given Modified Paths: -------------- trunk/squirrelmail/functions/options.php Modified: trunk/squirrelmail/functions/options.php =================================================================== --- trunk/squirrelmail/functions/options.php 2008-02-26 19:14:46 UTC (rev 12967) +++ trunk/squirrelmail/functions/options.php 2008-02-26 19:54:15 UTC (rev 12968) @@ -590,6 +590,8 @@ $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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |