From: Evan Prodromou Date: Thu, 7 Jul 2011 14:58:44 +0000 (-0400) Subject: don't show see-all if less than hard max X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=12e0f8915585a821e678c33c7ac88beb73f9ed82;p=quix0rs-gnu-social.git don't show see-all if less than hard max --- diff --git a/lib/moremenu.php b/lib/moremenu.php index a8ab132555..14e221feb6 100644 --- a/lib/moremenu.php +++ b/lib/moremenu.php @@ -103,11 +103,13 @@ class MoreMenu extends Menu $this->item($actionName, $args, $label, $description, $id, 'extended_menu'); } - $seeAll = $this->seeAllItem(); + if ($total > self::HARD_MAX) { + $seeAll = $this->seeAllItem(); - if (!empty($seeAll)) { - list($actionName, $args, $label, $description, $id) = $seeAll; - $this->item($actionName, $args, $label, $description, $id, 'extended_menu see_all'); + if (!empty($seeAll)) { + list($actionName, $args, $label, $description, $id) = $seeAll; + $this->item($actionName, $args, $label, $description, $id, 'extended_menu see_all'); + } } }