1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fix for db_FieldList();

This commit is contained in:
Cameron
2019-02-13 15:54:04 -08:00
parent af50dcc5ff
commit 25c9a44a87

View File

@@ -2265,15 +2265,16 @@ class e_db_mysql
if ($prefix == '') $prefix = $this->mySQLPrefix; if ($prefix == '') $prefix = $this->mySQLPrefix;
if (FALSE === ($result = $this->gen('SHOW COLUMNS FROM '.$prefix.$table))) if (false === $this->gen('SHOW COLUMNS FROM '.$prefix.$table))
{ {
return FALSE; // Error return return false; // Error return
} }
$ret = array(); $ret = array();
if ($this->rowCount() > 0) if ($this->rowCount() > 0)
{ {
while ($row = $this->fetch($result)) while ($row = $this->fetch())
{ {
if ($retinfo) if ($retinfo)
{ {
@@ -2285,6 +2286,7 @@ class e_db_mysql
} }
} }
} }
return $ret; return $ret;
} }