diff --git a/include/simpleplugin/class_attribute.inc b/include/simpleplugin/class_attribute.inc
index 6a27964213f7c23bf7d598fc50369d99b2dd1567..ec9329891d4380de3f6088b44808b04009c0c0c8 100644
--- a/include/simpleplugin/class_attribute.inc
+++ b/include/simpleplugin/class_attribute.inc
@@ -220,7 +220,7 @@ class Attribute
     return $this->required;
   }
 
-  protected function setRequired ($bool)
+  function setRequired ($bool)
   {
     $this->required = $bool;
   }
@@ -1111,7 +1111,7 @@ class SelectAttribute extends Attribute
     }
   }
 
-  protected function setRequired ($bool)
+  function setRequired ($bool)
   {
     parent::setRequired($bool);
     $key = array_search("", $this->choices, TRUE);