diff --git a/example/includes/db.php b/example/includes/db.php index 59f740f..cbeae5c 100644 --- a/example/includes/db.php +++ b/example/includes/db.php @@ -99,7 +99,7 @@ function update_item($id, $changes) { $item = get_item($id, true); 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']); try {