From: Roland Haeder Date: Fri, 27 Mar 2015 22:41:39 +0000 (+0100) Subject: ??? Not callable? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ebc8e2a0e7dde135aef73be7b3d96dff155fe091;p=quix0rs-gnu-social.git ??? Not callable? Signed-off-by: Roland Haeder --- 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;