mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-9506 small fix
This commit is contained in:
parent
76127f3797
commit
cb64c6b257
2 changed files with 18 additions and 18 deletions
|
@ -24,7 +24,8 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require_once('grade_object.php');
|
||||
|
||||
global $db;
|
||||
$db->debug = true;
|
||||
/**
|
||||
* Class representing a grade item. It is responsible for handling its DB representation,
|
||||
* modifying and returning its metadata.
|
||||
|
@ -759,9 +760,9 @@ class grade_item extends grade_object {
|
|||
* @return boolean Success or failure
|
||||
*/
|
||||
function flag_for_update() {
|
||||
$result = true;
|
||||
|
||||
$this->needsupdate = true;
|
||||
|
||||
$result = $this->update();
|
||||
$category = $this->get_category();
|
||||
|
||||
if (!empty($category)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue