From: Jason Woofenden Date: Mon, 22 Oct 2007 22:13:45 +0000 (-0400) Subject: fixed format_options() (broken by recent pulldown changes) X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=674346c2b0a6cb040cee751fbcaadb7b4f34be77 fixed format_options() (broken by recent pulldown changes) --- 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;