mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Fix for db_FieldList();
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user