Merge branch 'MDL-68991-master' of git://github.com/rezaies/moodle
[moodle.git] / lib / classes / userfeedback.php
index 7d315ee..af2d7f8 100644 (file)
@@ -153,7 +153,7 @@ class core_userfeedback {
     public static function can_give_feedback(): bool {
         global $CFG;
 
-        return $CFG->enableuserfeedback && isloggedin() && !isguestuser();
+        return !empty($CFG->enableuserfeedback) && isloggedin() && !isguestuser();
     }
 
     /**