diff options
author | Christian Weber | 2007-09-26 12:14:20 +0000 |
---|---|---|
committer | Christian Weber | 2007-09-26 12:14:20 +0000 |
commit | 9cc7e4e94d22c890d5af343c17ba448d9537a398 (patch) | |
tree | a42c3088ddfe269ddb7b999e705caeb8fff3dfa3 | |
parent | 30824c0a03065d35a3f9ff8678f80c370e1be31d (diff) | |
download | itools-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.class | 2 |
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; } |