Skip to content
Browse files

MDL-26507: improper use of assignment operater causes grade checks to…

… fail
  • Loading branch information...
1 parent eabbb12 commit fdef13e6929f639c8f7c307ac9d1c6642067eef6 @mackensen mackensen committed with sammarshallou
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/conditionlib.php
View
2 lib/conditionlib.php
@@ -557,7 +557,7 @@ private function require_data() {
*/
private function get_cached_grade_score($gradeitemid, $grabthelot=false, $userid=0) {
global $USER, $DB, $SESSION;
- if ($userid==0 || $userid=$USER->id) {
+ if ($userid==0 || $userid==$USER->id) {
// For current user, go via cache in session
if (empty($SESSION->gradescorecache) || $SESSION->gradescorecacheuserid!=$USER->id) {
$SESSION->gradescorecache = array();

0 comments on commit fdef13e

Please sign in to comment.
Something went wrong with that request. Please try again.