From: Roland Haeder <roland@mxchange.org> Date: Fri, 27 Mar 2015 22:41:39 +0000 (+0100) Subject: ??? Not callable? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c1932a9fc19a6e60eebb97bc21ce75eaa6659819;p=quix0rs-gnu-social.git ??? Not callable? Signed-off-by: Roland Haeder <roland@mxchange.org> --- diff --git a/classes/Notice_tag.php b/classes/Notice_tag.php index 62810eba98..17882c60d8 100644 --- a/classes/Notice_tag.php +++ b/classes/Notice_tag.php @@ -89,7 +89,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/plugins/TagCloud/lib/tagcloudsection.php b/plugins/TagCloud/lib/tagcloudsection.php index cec3619a8e..d7b0929b7b 100644 --- a/plugins/TagCloud/lib/tagcloudsection.php +++ b/plugins/TagCloud/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;