example: fix small error report by phpstan

This commit is contained in:
Benjamin Renard 2023-02-25 17:19:39 +01:00
parent 6a810bf75a
commit 32457c5f97

View file

@ -99,7 +99,7 @@ function update_item($id, $changes) {
$item = get_item($id, true); $item = get_item($id, true);
if (!is_array($item)) return false; if (!is_array($item)) return false;
if (isset($changes['date']) && !is_null($changes['date'])) if (isset($changes['date']) && $changes['date'])
$changes['date'] = $db -> time2datetime($changes['date']); $changes['date'] = $db -> time2datetime($changes['date']);
try { try {