MDL-14679 fixed remaining old style update_record()s

This commit is contained in:
Petr Skoda
2010-09-03 18:01:25 +00:00
parent a9637e7df4
commit dd88de0ebd
23 changed files with 110 additions and 157 deletions
+3 -3
View File
@@ -616,7 +616,7 @@ function data_decode_content_links_caller($restore) {
/// Update record if any field changed
if($changed) {
$status = $DB->update_record("data",$newdata);
$DB->update_record("data",$newdata);
}
/// Do some output
@@ -650,7 +650,7 @@ function data_decode_content_links_caller($restore) {
if ($result != $content) {
/// Update record
$comment->content = $result;
$status = $DB->update_record("data_comments",$comment);
$DB->update_record("data_comments",$comment);
if (debugging()) {
if (!defined('RESTORE_SILENTLY')) {
echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
@@ -718,7 +718,7 @@ function data_decode_content_links_caller($restore) {
$cnt->content4 = $result4;
}
/// Update record with the changed fields
$status = $DB->update_record("data_content",$cnt);
$DB->update_record("data_content",$cnt);
if (debugging()) {
if (!defined('RESTORE_SILENTLY')) {
echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';