From 687b9fb6a20fd1b1a5ac48656d06e9540cba5534 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 22 Oct 2021 07:26:30 +0000 Subject: comment out warning about db version differences - it is not relevant --- Zotlabs/Module/Import_items.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Import_items.php b/Zotlabs/Module/Import_items.php index 4232de621..38be09b29 100644 --- a/Zotlabs/Module/Import_items.php +++ b/Zotlabs/Module/Import_items.php @@ -144,14 +144,14 @@ class Import_items extends Controller { if (!is_array($data)) return; - if (array_key_exists('compatibility', $data) && array_key_exists('database', $data['compatibility'])) { - $v1 = substr($data['compatibility']['database'], -4); - $v2 = substr(DB_UPDATE_VERSION, -4); - if ($v2 > $v1) { - $t = sprintf(t('Warning: Database versions differ by %1$d updates.'), $v2 - $v1); - notice($t . EOL); - } - } + //if (array_key_exists('compatibility', $data) && array_key_exists('database', $data['compatibility'])) { + //$v1 = substr($data['compatibility']['database'], -4); + //$v2 = substr(DB_UPDATE_VERSION, -4); + //if ($v2 > $v1) { + //$t = sprintf(t('Warning: Database versions differ by %1$d updates.'), $v2 - $v1); + //notice($t . EOL); + //} + //} if (array_key_exists('item', $data) && is_array($data['item'])) { import_items($channel, $data['item'], false, ((array_key_exists('relocate', $data)) ? $data['relocate'] : null)); -- cgit v1.2.3