aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-25 00:38:38 -0800
committerfriendica <info@friendica.com>2015-01-25 00:38:38 -0800
commit30815e0c5799cdf5d79330f126eba922a375f0a8 (patch)
treedc8207764c54a30450c1e0b02ae8cd27ded65cce
parentdfc6126a65443567c74bb4568e0a32e8248eda80 (diff)
downloadvolse-hubzilla-30815e0c5799cdf5d79330f126eba922a375f0a8.tar.gz
volse-hubzilla-30815e0c5799cdf5d79330f126eba922a375f0a8.tar.bz2
volse-hubzilla-30815e0c5799cdf5d79330f126eba922a375f0a8.zip
don't set a rating of 1 on old sites that report poco rating as an array. Just set it to 0. It will be fixed whenever they upgrade.
-rw-r--r--include/socgraph.php2
-rw-r--r--version.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index 15ef480f6..5aa72f0be 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -119,7 +119,7 @@ function poco_load($xchan = '',$url = null) {
$name = $entry['displayName'];
$hash = $entry['hash'];
- $rating = ((array_key_exists('rating',$entry)) ? intval($entry['rating']) : 0);
+ $rating = ((array_key_exists('rating',$entry) && (! is_array($entry['rating']))) ? intval($entry['rating']) : 0);
$rating_text = ((array_key_exists('rating_text',$entry)) ? escape_tags($entry['rating_text']) :'');
if(x($entry,'urls') && is_array($entry['urls'])) {
diff --git a/version.inc b/version.inc
index 27408b584..2574e9160 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2015-01-23.925
+2015-01-25.927