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.
This commit is contained in:
parent
dfc6126a65
commit
30815e0c57
@ -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'])) {
|
||||
|
@ -1 +1 @@
|
||||
2015-01-23.925
|
||||
2015-01-25.927
|
||||
|
Reference in New Issue
Block a user