mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
query_list(). initialize return value to array(), to allways return an array
This commit is contained in:
parent
65a90eabb8
commit
476deb3605
@ -1435,7 +1435,7 @@ class so_sql
|
||||
}
|
||||
if (!is_array($value_col)) $value_col = array($value_col);
|
||||
|
||||
$cols = array();
|
||||
$cols = $ret = array();
|
||||
foreach($value_col as $key => $col)
|
||||
{
|
||||
$cols[$key] = preg_match('/AS ([a-z_0-9]+)$/i',$col,$matches) ? $matches[1] : $col;
|
||||
|
Loading…
Reference in New Issue
Block a user