diff options
author | friendica <info@friendica.com> | 2015-01-15 17:34:53 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-15 17:34:53 -0800 |
commit | 6cd26c359054e188d41a97d3d97e3c659f2dede9 (patch) | |
tree | d5de7af38448da80d1770bee6aa05bb998ce09ae /mod/poco.php | |
parent | 35276c2da92a29132be2aaa75a63658d440e87e5 (diff) | |
parent | 597b07e8cc40144abce63f0779d28c2dbc376a22 (diff) | |
download | volse-hubzilla-6cd26c359054e188d41a97d3d97e3c659f2dede9.tar.gz volse-hubzilla-6cd26c359054e188d41a97d3d97e3c659f2dede9.tar.bz2 volse-hubzilla-6cd26c359054e188d41a97d3d97e3c659f2dede9.zip |
Merge branch 'pocorate'
Diffstat (limited to 'mod/poco.php')
-rw-r--r-- | mod/poco.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/poco.php b/mod/poco.php index 3f932e92f..892d79801 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -178,7 +178,8 @@ function poco_init(&$a) { if($fields_ret['photos']) $entry['photos'] = array(array('value' => $rr['xchan_photo_l'], 'mimetype' => $rr['xchan_photo_mimetype'], 'type' => 'profile')); if($fields_ret['rating']) { - $entry['rating'] = ((array_key_exists('abook_rating',$rr)) ? array(intval($rr['abook_rating'])) : 0); + $entry['rating'] = ((array_key_exists('abook_rating',$rr)) ? intval($rr['abook_rating'])) : 0); + $entry['rating_text'] = ((array_key_exists('abook_rating_text',$rr)) ? $rr['abook_rating_text'])) : ''); // maybe this should be a composite calculated rating in $system_mode if($system_mode) $entry['rating'] = 0; |