From 562e9fb64ae169495f56ac79bec9860c7c4fade0 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 18 Oct 2003 10:30:02 +0000 Subject: [PATCH] Add quotes to string 'private' --- preferences/inc/class.uicategories.inc.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/preferences/inc/class.uicategories.inc.php b/preferences/inc/class.uicategories.inc.php index d5ded71f07..42e6b7040e 100644 --- a/preferences/inc/class.uicategories.inc.php +++ b/preferences/inc/class.uicategories.inc.php @@ -115,8 +115,10 @@ $GLOBALS['phpgw']->common->phpgw_header(); echo parse_navbar(); - $GLOBALS['phpgw']->template->set_file(array('cat_list_t' => 'listcats.tpl', - 'data_column' => 'listcats.tpl')); + $GLOBALS['phpgw']->template->set_file(array( + 'cat_list_t' => 'listcats.tpl', + 'data_column' => 'listcats.tpl' + )); $GLOBALS['phpgw']->template->set_block('cat_list_t','data_column','column'); $GLOBALS['phpgw']->template->set_block('cat_list_t','cat_list','list'); @@ -480,11 +482,13 @@ $type = 'mains'; } - $GLOBALS['phpgw']->template->set_var('category_list',$this->bo->cats->formated_list(array('type' => $type,'selected' => $cats[0]['parent'], - 'globals' => $global_cats, 'self' => $cat_id))); + $GLOBALS['phpgw']->template->set_var('category_list',$this->bo->cats->formated_list(array( + 'type' => $type,'selected' => $cats[0]['parent'], + 'globals' => $global_cats, 'self' => $cat_id + ))); $GLOBALS['phpgw']->template->set_var('access',''); + . ($cats[0]['access'] == 'private' ? ' checked' : '') . '>'); if ($extra) {