example: fix small error report by phpstan
This commit is contained in:
parent
6a810bf75a
commit
32457c5f97
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue