summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_xml.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_xml.class b/it_xml.class
index 32617b3..ec73324 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -44,7 +44,7 @@ function it_xml($xmldata = "", $p = array())
* Example: $root = it_xml::create("<a><b id='2'/></a>", array("b"));
*/
-function create($xmldata, $p = array())
+static function create($xmldata, $p = array())
{
$xml = new it_xml;
return $xml->from_xml($xmldata, array('factory' => true) + $p) ? $xml->_root : null;