From: <pdo...@us...> - 2008-02-27 17:14:23
|
Revision: 12971 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12971&view=rev Author: pdontthink Date: 2008-02-27 09:14:20 -0800 (Wed, 27 Feb 2008) Log Message: ----------- Avoid PHP errors when adding to empty list Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/options.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/options.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/options.php 2008-02-26 20:28:56 UTC (rev 12970) +++ branches/SM-1_4-STABLE/squirrelmail/functions/options.php 2008-02-27 17:14:20 UTC (rev 12971) @@ -597,6 +597,8 @@ // if ($option->type == SMOPT_TYPE_EDIT_LIST) { + if (empty($option->possible_values)) $option->possible_values = array(); + // add element if given // if (sqGetGlobalVar('add_' . $option->name, $new_element, SQ_POST)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |