Little code reorganistaion (RFE #957308), removed some remaining php3 compatibility code in SQL parser.

This commit is contained in:
Michal Čihař
2004-05-20 16:14:13 +00:00
parent f5371237aa
commit 1aaa89fa54
58 changed files with 256 additions and 254 deletions

View File

@@ -22,14 +22,14 @@
*/
function obj2xml($v, $indent = '') {
$attr = '';
foreach($v AS $key => $val) {
foreach ($v AS $key => $val) {
if (is_string($key) && ($key == '__attr')) {
continue;
}
// Check for __attr
if (is_object($val->__attr)) {
foreach($val->__attr AS $key2 => $val2) {
foreach ($val->__attr AS $key2 => $val2) {
$attr .= " $key2=\"$val2\"";
}
} else {