mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Fix for db_FieldList();
This commit is contained in:
parent
af50dcc5ff
commit
25c9a44a87
@ -2265,15 +2265,16 @@ class e_db_mysql
|
||||
|
||||
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();
|
||||
|
||||
if ($this->rowCount() > 0)
|
||||
{
|
||||
while ($row = $this->fetch($result))
|
||||
while ($row = $this->fetch())
|
||||
{
|
||||
if ($retinfo)
|
||||
{
|
||||
@ -2285,6 +2286,7 @@ class e_db_mysql
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user