MDL-9506 small fix

This commit is contained in:
nicolasconnault 2007-05-10 08:58:00 +00:00
parent 76127f3797
commit cb64c6b257
2 changed files with 18 additions and 18 deletions

View file

@ -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)) {