diff --git a/src/libraries/kunena/src/User/KunenaUser.php b/src/libraries/kunena/src/User/KunenaUser.php index 16d379b163c..61d4f3e2230 100644 --- a/src/libraries/kunena/src/User/KunenaUser.php +++ b/src/libraries/kunena/src/User/KunenaUser.php @@ -1699,9 +1699,11 @@ public function getRank($catid = 0, $type = null, $special = null) $rank->rankImage = 'rankadmin.gif'; foreach (self::$_ranks as $cur) { - if ($cur->rankSpecial == 1 && strstr($cur->rankImage, 'admin')) { - $rank = $cur; - break; + if (!empty($cur->rankImage)) { + if ($cur->rankSpecial == 1 && strstr($cur->rankImage, 'admin')) { + $rank = $cur; + break; + } } } break; diff --git a/src/site/src/Layout/Widget/WidgetRanks.php b/src/site/src/Layout/Widget/WidgetRanks.php new file mode 100644 index 00000000000..0569f623081 --- /dev/null +++ b/src/site/src/Layout/Widget/WidgetRanks.php @@ -0,0 +1,40 @@ +