summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2021-01-07 18:07:55 +0100
committerUrban Müller2021-01-07 18:07:55 +0100
commit815a8c57d71016eb5b23d355f9685173ceaab789 (patch)
tree13eaa64211b0b351139f48215706c5579f19ac7d
parentc9da06935801a3f5e6e83c22b24b06edab6e7555 (diff)
downloaditools-815a8c57d71016eb5b23d355f9685173ceaab789.tar.gz
itools-815a8c57d71016eb5b23d355f9685173ceaab789.tar.bz2
itools-815a8c57d71016eb5b23d355f9685173ceaab789.zip
avoid warning when no cols found
-rw-r--r--it_dbi.class2
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) {