Merge branch 'wip-MDL-26507' of git://github.com/sammarshallou/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 22 Feb 2011 10:17:16 +0000 (11:17 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 22 Feb 2011 10:17:16 +0000 (11:17 +0100)
lib/conditionlib.php

index 6b862e8..83b79d3 100644 (file)
@@ -557,7 +557,7 @@ WHERE
      */
     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();