From ebc8e2a0e7dde135aef73be7b3d96dff155fe091 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 27 Mar 2015 23:41:39 +0100 Subject: [PATCH] ??? Not callable? Signed-off-by: Roland Haeder --- classes/Notice_tag.php | 2 +- lib/tagcloudsection.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Notice_tag.php b/classes/Notice_tag.php index 5567b06093..eb36b83410 100644 --- a/classes/Notice_tag.php +++ b/classes/Notice_tag.php @@ -88,7 +88,7 @@ class Notice_tag extends Managed_DataObject * * @return $inScope Whether the current profile is allowed to see this tag */ - public function isCurrentProfileInScope () { + function isCurrentProfileInScope () { // Check scope, default is allowed $inScope = TRUE; diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index ccdf89f0b4..ca72a27e52 100644 --- a/lib/tagcloudsection.php +++ b/lib/tagcloudsection.php @@ -51,7 +51,7 @@ class TagCloudSection extends Section { $tags = $this->getTags(); - if (!$tags) { + if (!$tags instanceof Notice_tag) { // TRANS: Content displayed in a tag cloud section if there are no tags. $this->out->element('p', null, _m('NOTAGS','None')); return false; -- 2.39.5