From fb8c42963be48f85ebffd627e98c833cfcbd6dc7 Mon Sep 17 00:00:00 2001 From: kink Date: Sun, 18 Feb 2007 18:11:34 +0000 Subject: [PATCH] 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 --- functions/options.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 -- 2.25.1