summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class14
1 files changed, 7 insertions, 7 deletions
diff --git a/it_dbi.class b/it_dbi.class
index d785543..71e32c8 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -609,15 +609,15 @@ function _get_field_info()
$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)
+ foreach($this->_fields as $field)
+ {
+ if ($field['Key'] == 'PRI')
{
- if ($field['Key'] == 'PRI')
- {
- $result = array('keyfield' => $field['Field'], 'autoincrement' => (strpos($field['Extra'], "auto_increment") !== false),
- 'randomid' => (strpos($field['Type'], "char") !== false));
- break;
- }
+ $result = array('keyfield' => $field['Field'], 'autoincrement' => (strpos($field['Extra'], "auto_increment") !== false),
+ 'randomid' => (strpos($field['Type'], "char") !== false));
+ break;
}
}