Skip to content

Commit

Permalink
MDL-12518 fixed restore of grade calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Feb 5, 2008
1 parent f6ea800 commit 7825329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grade/grade_item.php
Expand Up @@ -964,7 +964,7 @@ function is_calculated() {
*/

// first detect if we need to change calculation formula from [[idnumber]] to ##giXXX## (after backup, etc.)
if (!$this->calculation_normalized and preg_match('/##gi\d+##/', $this->calculation)) {
if (!$this->calculation_normalized and strpos('[[', $this->calculation) !== 0) {
$this->set_calculation($this->calculation);
}

Expand Down

0 comments on commit 7825329

Please sign in to comment.