fixed SQL error caused by so_sql prefixing 0 with table name

This commit is contained in:
Ralf Becker 2013-08-29 13:28:08 +00:00
parent b6013305f7
commit ecf440ed57

View File

@ -501,7 +501,7 @@ class so_sql_cf extends so_sql
{
foreach($only_keys as $key => &$col)
{
if(is_numeric($key) && in_array($col, $this->db_cols))
if(is_numeric($key) && in_array($col, $this->db_cols, true))
{
$col = $this->table_name .'.'.array_search($col, $this->db_cols).' AS '.$col;
}