Reports/Fixup

* reports can have 'null' subject (general bug reports, general feedback)
This commit is contained in:
Sarjuuk
2024-08-27 15:43:51 +02:00
parent 778c21e817
commit 64fb86f3a9
2 changed files with 12 additions and 13 deletions

View File

@@ -38,8 +38,8 @@ class AjaxContactus extends AjaxHandler
$report = new Report($this->_post['mode'], $this->_post['reason'], $this->_post['id']);
if ($report->create($this->_post['desc'], $this->_post['ua'], $this->_post['appname'], $this->_post['page'], $this->_post['relatedurl'], $this->_post['email']))
return 0;
else if ($report->errorCode > 0)
return $report->errorCode;
else if (($e = $report->getError()) > 0)
return $e;
else
return Lang::main('intError');
}