JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed format_options() (broken by recent pulldown changes)
authorJason Woofenden <jason183@herkamire.com>
Mon, 22 Oct 2007 22:13:45 +0000 (18:13 -0400)
committerJason Woofenden <jason183@herkamire.com>
Mon, 22 Oct 2007 22:13:45 +0000 (18:13 -0400)
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;