cvs: pear /XML_sql2xml sql2xml.php

From: Date: Mon, 25 Nov 2002 14:06:52 +0000
Subject: cvs: pear /XML_sql2xml sql2xml.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7580@lists.php.net to get a copy of this message
chregu Mon Nov 25 09:06:52 2002 EDT Modified files: /pear/XML_sql2xml sql2xml.php Log: E_ALL fix by Stéphane Berthelot. Index: pear/XML_sql2xml/sql2xml.php diff -u pear/XML_sql2xml/sql2xml.php:1.10 pear/XML_sql2xml/sql2xml.php:1.11 --- pear/XML_sql2xml/sql2xml.php:1.10 Tue Nov 19 10:14:01 2002 +++ pear/XML_sql2xml/sql2xml.php Mon Nov 25 09:06:51 2002 @@ -15,7 +15,7 @@ // | Authors: Christian Stocker <chregu@phant.ch> | // +----------------------------------------------------------------------+ // -// $Id: sql2xml.php,v 1.10 2002/11/19 15:14:01 chregu Exp $ +// $Id: sql2xml.php,v 1.11 2002/11/25 14:06:51 chregu Exp $ /** * This class takes a PEAR::DB-Result Object, a sql-query-string or an array @@ -47,8 +47,8 @@ * More documentation and a tutorial/how-to can be found at * http://php.chregu.tv/sql2xml * -* @author Christian Stocker <chregu@nomad.ch> -* @version $Id: sql2xml.php,v 1.10 2002/11/19 15:14:01 chregu Exp $ +* @author Christian Stocker <chregu@bitflux.ch> +* @version $Id: sql2xml.php,v 1.11 2002/11/25 14:06:51 chregu Exp $ * @package XML */ class XML_sql2xml { @@ -457,8 +457,7 @@ $tableInfo[$key]["table"] = $value["table"]; } - - if (!isset($tableInfo["parent_table"]) || is_null($tableInfo["parent_table"][$value["table"]])) + if (!isset($tableInfo["parent_table"]) || !isset($tableInfo["parent_table"][$value["table"]]) || is_null($tableInfo["parent_table"][$value["table"]])) { $tableInfo["parent_key"][$value["table"]] = $key; $tableInfo["parent_table"][$value["table"]] = $parenttable;

« previous php.pear.cvs (#7580) next »