fix for no colums given via $only_keys=''

This commit is contained in:
Ralf Becker 2006-05-17 03:02:47 +00:00
parent b38f020e32
commit abf67e8471

View File

@ -568,7 +568,7 @@ class so_sql
{
$colums = $only_keys;
}
if ($extra_cols) $colums .= ','.(is_array($extra_cols) ? implode(',',$extra_cols) : $extra_cols);
if ($extra_cols) $colums .= ($colums ? ',' : '').(is_array($extra_cols) ? implode(',',$extra_cols) : $extra_cols);
$num_rows = 0; // as spec. in max_matches in the user-prefs
if (is_array($start)) list($start,$num_rows) = $start;