ftimme
2013-08-09 0d8ef81ec2f2e1ddbab9da906f2537255fce396d
- Added check that $app->modules->current_datalog_id is set and > 0.
1 files modified
2 ■■■ changed files
server/lib/classes/db_mysql.inc.php 2 ●●● patch | view | raw | blame | history
server/lib/classes/db_mysql.inc.php
@@ -378,7 +378,7 @@
    public function datalogError($errormsg) {
      global $app;
      
      $this->query("UPDATE sys_datalog set error = '".$this->quote($errormsg)."' WHERE datalog_id = ".$app->modules->current_datalog_id);
      if(isset($app->modules->current_datalog_id) && $app->modules->current_datalog_id > 0) $this->query("UPDATE sys_datalog set error = '".$this->quote($errormsg)."' WHERE datalog_id = ".$app->modules->current_datalog_id);
      return true;
    }