diff options
Diffstat (limited to 'classes/User_group.php')
-rw-r--r-- | classes/User_group.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/User_group.php b/classes/User_group.php index 38e0058c1..e6e79ca6a 100644 --- a/classes/User_group.php +++ b/classes/User_group.php @@ -301,7 +301,8 @@ class User_group extends Memcached_DataObject static function maxDescription() { $desclimit = common_config('group', 'desclimit'); - if (empty($desclimit)) { + // null => use global limit (distinct from 0!) + if (is_null($desclimit)) { $desclimit = common_config('site', 'textlimit'); } return $desclimit; @@ -310,6 +311,6 @@ class User_group extends Memcached_DataObject static function descriptionTooLong($desc) { $desclimit = self::maxDescription(); - return (!empty($desclimit) && !empty($desc) && (mb_strlen($desc) > $desclimit)); + return ($desclimit > 0 && !empty($desc) && (mb_strlen($desc) > $desclimit)); } } |