diff options
author | Urban Müller | 2021-01-07 18:07:55 +0100 |
---|---|---|
committer | Urban Müller | 2021-01-07 18:07:55 +0100 |
commit | 815a8c57d71016eb5b23d355f9685173ceaab789 (patch) | |
tree | 13eaa64211b0b351139f48215706c5579f19ac7d | |
parent | c9da06935801a3f5e6e83c22b24b06edab6e7555 (diff) | |
download | itools-815a8c57d71016eb5b23d355f9685173ceaab789.tar.gz itools-815a8c57d71016eb5b23d355f9685173ceaab789.tar.bz2 itools-815a8c57d71016eb5b23d355f9685173ceaab789.zip |
avoid warning when no cols found
-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 fed467d..e032a03 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -1084,7 +1084,7 @@ function _get_field_defs() { for ($res = $this->query('SHOW COLUMNS FROM ' . $this->_p['table']); $res && ($field = $this->_fetch_assoc($res)); ) $result[$field['Field']] = it::filter_keys($field, ['Field', 'Type', 'Key', 'Extra']); - return $result; + return (array)$result; } function _tables($p) { |