[Plugin: User Access Manager] Bug using Thematic – empty categories not hidden
-
WP:3.0.1
UAM:1.1.4
Thematic:0.9.7.7Reproduce the problem by creating a new category, add a post and restrict access to a uam-group. Also check ‘hide empty categories’ in the uam-settings.
This category is empty and should therefore be hidden for everyone except the members of the assigned group. It worked perfectly well until i switched my theme to thesis.
Ouput in debug-mode:
Notice: Undefined property: stdClass::$isEmpty in \wp-content\plugins\user-access-manager\class\UserAccessManager.class.php on line 1806
Quick and Dirty fix:
change line 1806 of UserAccessManager.class.php from
if (!$term->isEmpty) {
to
if ($term->count!=0) {
this seems to do the job.
- The topic ‘[Plugin: User Access Manager] Bug using Thematic – empty categories not hidden’ is closed to new replies.