From d77b043d9c8d24b80e2709dfee87226c2eae126c Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 15 May 2022 20:26:14 +0000 Subject: [PATCH] Fixing tests --- src/Model/Post/History.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Post/History.php b/src/Model/Post/History.php index e889ccf205..68f2e9cda6 100644 --- a/src/Model/Post/History.php +++ b/src/Model/Post/History.php @@ -38,14 +38,14 @@ class History public static function add(int $uri_id, array $item) { $allfields = DBStructure::definition('', false); - $fields = array_keys($allfields['post-history']['fields']); + $fields = array_keys($allfields['post-history']['fields']); $post = Post::selectFirstPost($fields, ['uri-id' => $uri_id]); if (empty($post)) { return; } - $update = false; + $update = false; $changed = DBStructure::getFieldsForTable('post-history', $item); unset($changed['uri-id']); unset($changed['edited']); -- 2.39.5