fixed minor webui bugs

This commit is contained in:
SJ
2012-07-06 15:02:23 +02:00
parent 2d803e31d3
commit baa062cc0a
5 changed files with 11 additions and 8 deletions

View File

@ -293,11 +293,13 @@ class ModelSearchSearch extends Model {
$q = "";
foreach($query->rows as $a) {
array_push($ids, $a['id']);
if(isset($query->rows)) {
foreach($query->rows as $a) {
array_push($ids, $a['id']);
if($q) { $q .= ",?"; }
else { $q = "?"; }
if($q) { $q .= ",?"; }
else { $q = "?"; }
}
}