From 674346c2b0a6cb040cee751fbcaadb7b4f34be77 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Mon, 22 Oct 2007 18:13:45 -0400 Subject: [PATCH] fixed format_options() (broken by recent pulldown changes) --- format.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/format.php b/format.php index bb34919..c14d01a 100644 --- a/format.php +++ b/format.php @@ -33,8 +33,11 @@ function format_options($str, $name) { die("Couldn't find options for \"$name\". Be sure to call pulldown()."); } - if(!in_array($str, array_keys($GLOBALS[$name . '_options']['options']))) { - return ''; + foreach($GLOBALS[$name . '_options']['options'] as $keyval) { + list($key, $value) = $keyval; + if($str == $key) { + return $str; + } } return $str; -- 1.7.10.4