Skip to content

Commit f9f235c

Browse files
committed
Fix comment + linewrap
1 parent 093ad50 commit f9f235c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

interface/lib/classes/db_mysql.inc.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,12 +825,13 @@ public function datalogDelete($tablename, $index_field, $index_value) {
825825
return true;
826826
}
827827

828-
//** Deletes a record and saves the changes into the datalog
828+
// Updates a datalog record to store an error state.
829829
public function datalogError($errormsg) {
830830
global $app;
831831

832-
if(isset($app->modules->current_datalog_id) && $app->modules->current_datalog_id > 0) $this->query("UPDATE sys_datalog set error = ? WHERE datalog_id = ?", $errormsg, $app->modules->current_datalog_id);
833-
832+
if(isset($app->modules->current_datalog_id) && $app->modules->current_datalog_id > 0) {
833+
$this->query("UPDATE sys_datalog set error = ? WHERE datalog_id = ?", $errormsg, $app->modules->current_datalog_id);
834+
}
834835
return true;
835836
}
836837

server/lib/classes/db_mysql.inc.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,12 +825,13 @@ public function datalogDelete($tablename, $index_field, $index_value) {
825825
return true;
826826
}
827827

828-
//** Deletes a record and saves the changes into the datalog
828+
// Updates a datalog record to store an error state.
829829
public function datalogError($errormsg) {
830830
global $app;
831831

832-
if(isset($app->modules->current_datalog_id) && $app->modules->current_datalog_id > 0) $this->query("UPDATE sys_datalog set error = ? WHERE datalog_id = ?", $errormsg, $app->modules->current_datalog_id);
833-
832+
if(isset($app->modules->current_datalog_id) && $app->modules->current_datalog_id > 0) {
833+
$this->query("UPDATE sys_datalog set error = ? WHERE datalog_id = ?", $errormsg, $app->modules->current_datalog_id);
834+
}
834835
return true;
835836
}
836837

0 commit comments

Comments
 (0)