Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better error checking in update_record
  • Loading branch information
martin committed Jul 27, 2002
1 parent 673de29 commit 1afd014
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/moodlelib.php
Expand Up @@ -687,7 +687,9 @@ function update_record($table, $dataobject) {
} }


// Determine all the fields in the table // Determine all the fields in the table
$columns = $db->MetaColumns($table); if (!$columns = $db->MetaColumns($table)) {
return false;
}
$data = (array)$dataobject; $data = (array)$dataobject;


// Pull out data matching these fields // Pull out data matching these fields
Expand Down

0 comments on commit 1afd014

Please sign in to comment.