summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_xml.class')
-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;