fix php5 bug reported by Rui Martins
authorchriskl <chriskl>
Sun, 23 May 2004 09:43:28 +0000 (09:43 +0000)
committerchriskl <chriskl>
Sun, 23 May 2004 09:43:28 +0000 (09:43 +0000)
classes/class.select.php

index ab1c67e4aefdd855bd321974377213749aa854b0..057c8d6eaa27da4f6a6308f8e4daab2759ea498e 100644 (file)
@@ -31,17 +31,17 @@ class XHtmlSimpleElement {
        }
 
        function set_style($style) {
-               $this->set_attribute("style", $style);
+               $this->set_attribute('style', $style);
        }
        
        function set_class($class) {
-               $this->set_attribute("class", $class);
+               $this->set_attribute('class', $class);
        }
 
        
        function is_element() {
                return 
-                       str_replace("xhtml_", "", get_class($this));
+                       str_replace('xhtml_', '', strtolower(get_class($this)));
        }
 
        /**