Commit 6edaca24 authored by Anja Leichsenring's avatar Anja Leichsenring Committed by Christian Kuhn
Browse files

[BUGFIX] Possible fatal if sys_notes table is broken

Change-Id: I581f48bd031344aa43aa227f7c5e0a34e1cd3ea8
Fixes: #39528
Releases: 6.0
Reviewed-by: Markus Günther
Tested-by: Markus Günther
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
parent a20f119f
......@@ -48,6 +48,12 @@ class Tx_SysNote_Domain_Repository_SysNoteRepository {
// exec_SELECTgetRows can return NULL if the query failed. This is
// transformed here to an empty array instead.
if ($records === NULL) {
$records = array();
foreach ($records as $key => $record) {
$records[$key]['tstamp'] = new DateTime('@' . $record['tstamp']);
$records[$key]['author'] = t3lib_BEfunc::getRecord('be_users', $record['cruser']);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment