We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 3e15bab9 authored by mattl's avatar mattl

PHP Notice: Trying to get property of non-object

The notice was reported in /srv/www/vhosts/se/umeahackerspace/social/%/htdocs/lib/inboxtagcloudsection.php on line 63
parent 1d46ca45
......@@ -60,7 +60,8 @@ class InboxTagCloudSection extends TagCloudSection
$profile = Profile::current();
$keypart = sprintf('Inbox:notice_tag:%d:%d', $this->user->id, $profile->id);
$keypart = sprintf('Inbox:notice_tag:%d:%d', $this->user->id,
$profile instanceof Profile ? $profile->id : 0);
$tag = Memcached_DataObject::cacheGet($keypart);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment