summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weber2007-09-26 12:14:20 +0000
committerChristian Weber2007-09-26 12:14:20 +0000
commit9cc7e4e94d22c890d5af343c17ba448d9537a398 (patch)
treea42c3088ddfe269ddb7b999e705caeb8fff3dfa3
parent30824c0a03065d35a3f9ff8678f80c370e1be31d (diff)
downloaditools-9cc7e4e94d22c890d5af343c17ba448d9537a398.tar.gz
itools-9cc7e4e94d22c890d5af343c17ba448d9537a398.tar.bz2
itools-9cc7e4e94d22c890d5af343c17ba448d9537a398.zip
make sure that singleton never has table or keyfield set
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 71e32c8..ed326b9 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -608,7 +608,6 @@ function _get_field_info()
$this->_fields[$field['Field']] = $field + array('Length' => intval(it::match('\d+', $field['Type'])));
$GLOBALS['it_dbi']->_state[$this->_p['dbid']]['fields'][$this->_p['table']] = $this->_fields;
- unset($GLOBALS['it_dbi']->_p['table']); # Remove cruft
}
foreach($this->_fields as $field)
@@ -621,6 +620,7 @@ function _get_field_info()
}
}
+ unset($GLOBALS['it_dbi']->_p['table'], $GLOBALS['it_dbi']->_p['keyfield']); # Remove cruft
return $result;
}