From 5021b9c0b9511ff4ebe964cc33c6d13ab3df3eba Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 23 May 2018 10:42:39 +0200 Subject: [PATCH] * Calendar/Resources: fix SQL error with no category responsible for Slovenian (and maybe other) translations --- resources/inc/class.resources_acl_bo.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/inc/class.resources_acl_bo.inc.php b/resources/inc/class.resources_acl_bo.inc.php index 59b8b55f06..5c88de77e7 100755 --- a/resources/inc/class.resources_acl_bo.inc.php +++ b/resources/inc/class.resources_acl_bo.inc.php @@ -121,7 +121,7 @@ class resources_acl_bo * * @author Cornelius Weiss * @param int $cat_id - * @return int userid of cat admin + * @return int|null userid of cat admin or null for none set */ static public function get_cat_admin($cat_id) { @@ -138,7 +138,7 @@ class resources_acl_bo { return self::get_cat_admin($parent); } - return lang('none'); + return null; } /**