summaryrefslogtreecommitdiff
path: root/webgli
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2006-04-17 00:24:18 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2006-04-17 00:24:18 +0000
commitb8e5d90edf8a597b2c021f150be6bc5c0221f204 (patch)
tree592dc0e2caaee28060cc6c767d74efeb024bdbda /webgli
parentmore spacing for xml output (diff)
downloadscire-b8e5d90edf8a597b2c021f150be6bc5c0221f204.tar.gz
scire-b8e5d90edf8a597b2c021f150be6bc5c0221f204.tar.bz2
scire-b8e5d90edf8a597b2c021f150be6bc5c0221f204.zip
use array_key_exists() to check for known xmlpath
svn path=/; revision=36
Diffstat (limited to 'webgli')
-rw-r--r--webgli/XMLParser.php2
-rw-r--r--webgli/webgliIP.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/webgli/XMLParser.php b/webgli/XMLParser.php
index 4ebe13e..78494f1 100644
--- a/webgli/XMLParser.php
+++ b/webgli/XMLParser.php
@@ -10,7 +10,7 @@ class XMLParser {
}
function end_handler($parser, $name) {
- if($this->xmlpaths[$this->xmlpath]) {
+ if(array_key_exists($this->xmlpath, $this->xmlpaths)) {
if($this->values[$this->xmlpaths[$this->xmlpath]]) {
$this->chardata = trim($this->chardata);
switch($this->values[$this->xmlpaths[$this->xmlpath]]['type']) {
diff --git a/webgli/webgliIP.php b/webgli/webgliIP.php
index df41d4d..85f253e 100644
--- a/webgli/webgliIP.php
+++ b/webgli/webgliIP.php
@@ -116,7 +116,6 @@ class InstallProfile extends XMLParser {
$this->values[$name]['value'] = $value;
}
-
function serialize() {
$this->xmldoc = "<?xml version=\"1.0\"?>\n";
$this->xmldoc .= "<gli-profile>\n";