From 1500c4f7395a87d335bd8011c329d0eabab1bc19 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 27 Jun 2011 15:54:07 +0000 Subject: [PATCH] Fix warning message again --- admin/inc/class.admin_categories.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_categories.inc.php b/admin/inc/class.admin_categories.inc.php index b3876be8ff..5794c5d2d6 100644 --- a/admin/inc/class.admin_categories.inc.php +++ b/admin/inc/class.admin_categories.inc.php @@ -234,6 +234,7 @@ class admin_categories } $content['no_private'] = true; } + if($this->appname == 'admin') { $content['access'] = 'public'; @@ -245,7 +246,7 @@ class admin_categories egw_framework::validate_file('.','global_categories','admin'); egw_framework::set_onload('$(document).ready(function() { - cat_original_owner = [' . ($content['owner'] ? $content['owner'] : $content['id'] ? '0' : '') .']; + cat_original_owner = [' . ($content['owner'] ? $content['owner'] : ($content['id'] ? '0' : '')) .']; permission_prompt = \'' . lang('Removing access for groups may cause problems for data in this category. Are you sure? Users in these groups may no longer have access:').'\'; });');