X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=format.php;h=c14d01a81c35033f9252bb5eda8ca4d4e99da05b;hb=cf0e2ed3d4be7a68b8a4480ebded912361521e6e;hp=bb349192976178ed3fc5541f3c35d5faff007ad6;hpb=a2093c37f91d34a3798c7a8f23f6c53baea8beb0;p=wfpl.git 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;