JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed format_options() (broken by recent pulldown changes)
[wfpl.git] / format.php
index bb34919..c14d01a 100644 (file)
@@ -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;