honour the rating enable setting (which we really do need to rename since it isn't poco any more)

This commit is contained in:
friendica 2015-02-04 17:34:53 -08:00
parent 561bab4ece
commit 24b198a50c

View File

@ -908,6 +908,11 @@ function widget_random_block($arr) {
function widget_rating($arr) {
$a = get_app();
$poco_rating = get_config('system','poco_rating_enable');
if((! $poco_rating) && ($poco_rating !== false)) {
return;
}
if($arr['target'])
$hash = $arr['target'];
else