From 9cc7e4e94d22c890d5af343c17ba448d9537a398 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Wed, 26 Sep 2007 12:14:20 +0000 Subject: make sure that singleton never has table or keyfield set --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') 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; } -- cgit v1.2.3