mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
some bugfixes related to empty database
This commit is contained in:
parent
3460c4f058
commit
9034ef788c
@ -47,7 +47,7 @@ class so_resources
|
||||
{
|
||||
$wherecats .= ($wherecats ? " OR " : " AND ( " ) .'cat_id' . "='".$cat_id."'";
|
||||
}
|
||||
$wherecats .= " ) ";
|
||||
$wherecats .= $wherecats ? " ) " : "";
|
||||
|
||||
$this->db->query( 'SELECT '.$select." FROM ".$this->rs_table." WHERE ".$where.$wherecats.
|
||||
($order_by != '' ? " ORDER BY $order_by" : ''),__LINE__,__FILE__);
|
||||
|
@ -70,8 +70,7 @@ class ui_resources
|
||||
$content['nm']['no_filter'] = False;
|
||||
$content['nm']['filter_label'] = lang('Category');
|
||||
$content['nm']['filter_help'] = lang('Select a category'); // is this used???
|
||||
$content['nm']['options-filter']= array('0' => lang('all categories'));
|
||||
$content['nm']['options-filter']+= $this->bo->acl->get_cats(PHPGW_ACL_READ);
|
||||
$content['nm']['options-filter']= array('0'=>lang('all categories'))+(array)$this->bo->acl->get_cats(PHPGW_ACL_READ);
|
||||
$content['nm']['no_filter2'] = True;
|
||||
$content['nm']['no_cat'] = True;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user