From: kink Date: Sun, 18 Feb 2007 18:11:34 +0000 (+0000) Subject: error out on nonexistant option type. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fb8c42963be48f85ebffd627e98c833cfcbd6dc7;p=squirrelmail.git error out on nonexistant option type. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12273 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/options.php b/functions/options.php index 02ed86c9..424e4c87 100644 --- a/functions/options.php +++ b/functions/options.php @@ -316,10 +316,9 @@ class SquirrelOption { $result = $this->createWidget_FolderList(); break; default: -//FIXME: can we throw an error here instead? either way, we don't want HTML here! - $result = '' - . sprintf(_("Option Type '%s' Not Found"), $this->type) - . ''; + error_box ( + sprintf(_("Option Type '%s' Not Found"), $this->type) + ); } /* Add the "post script" for this option. */ @@ -626,4 +625,3 @@ function create_option_groups($optgrps, $optvals) { return ($result); } -// vim: et ts=4