error out on nonexistant option type.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 18 Feb 2007 18:11:34 +0000 (18:11 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 18 Feb 2007 18:11:34 +0000 (18:11 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12273 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/options.php

index 02ed86c..424e4c8 100644 (file)
@@ -316,10 +316,9 @@ class SquirrelOption {
                 $result = $this->createWidget_FolderList();
                 break;
             default:
                 $result = $this->createWidget_FolderList();
                 break;
             default:
-//FIXME: can we throw an error here instead?  either way, we don't want HTML here!
-               $result = '<font color="' . $color[2] . '">'
-                       . sprintf(_("Option Type '%s' Not Found"), $this->type)
-                       . '</font>';
+                error_box ( 
+                    sprintf(_("Option Type '%s' Not Found"), $this->type)
+                    );
         }
 
         /* Add the "post script" for this option. */
         }
 
         /* Add the "post script" for this option. */
@@ -626,4 +625,3 @@ function create_option_groups($optgrps, $optvals) {
     return ($result);
 }
 
     return ($result);
 }
 
-// vim: et ts=4