Commit 39485e3524390167f388ff0c8bab3696914bc629

Authored by Neil Blakey-Milner
1 parent ffaadefb

If there are no actions, don't return anything in action portlet render.

(ie, actions portlet will not be displayed at all)


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4929 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 0 deletions
lib/widgets/portlet.inc.php
... ... @@ -89,6 +89,9 @@ class KTActionPortlet extends KTPortlet {
89 89 }
90 90  
91 91 function render() {
  92 + if (empty($this->actions)) {
  93 + return null;
  94 + }
92 95 $oTemplating = new KTTemplating;
93 96 $oTemplate = $oTemplating->loadTemplate("kt3/portlets/actions_portlet");
94 97 $aTemplateData = array(
... ...