aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/widgets.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 7d2aaeb99..5eda9008b 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -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