From 815a8c57d71016eb5b23d355f9685173ceaab789 Mon Sep 17 00:00:00 2001
From: Urban Müller
Date: Thu, 7 Jan 2021 18:07:55 +0100
Subject: avoid warning when no cols found

---
 it_dbi.class | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {
-- 
cgit v1.2.3