aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ratings.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-03 23:30:07 -0800
committerfriendica <info@friendica.com>2015-02-03 23:30:07 -0800
commit127bf82187c266c2202fd33003e60b5061778cd7 (patch)
treead29cff6716c658a10ff33ff40b5771750f8b787 /mod/ratings.php
parent0cc29af6d0c305efa35fbe3b0c7bc314f21b4166 (diff)
downloadvolse-hubzilla-127bf82187c266c2202fd33003e60b5061778cd7.tar.gz
volse-hubzilla-127bf82187c266c2202fd33003e60b5061778cd7.tar.bz2
volse-hubzilla-127bf82187c266c2202fd33003e60b5061778cd7.zip
probably enough for now - couldn't get the censorship filter in today, I think that's the only bit missing.
Diffstat (limited to 'mod/ratings.php')
-rw-r--r--mod/ratings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/ratings.php b/mod/ratings.php
index 66392fe2b..fe7865778 100644
--- a/mod/ratings.php
+++ b/mod/ratings.php
@@ -55,7 +55,7 @@ function ratings_init(&$a) {
if($results['ratings']) {
foreach($results['ratings'] as $n) {
- if(array_key_exists($n['xchan_hash'],$a->contacts))
+ if(is_array($a->contacts) && array_key_exists($n['xchan_hash'],$a->contacts))
$friends[] = $n;
else
$others[] = $n;