From 6f3f09eb25a1bfa764ab616858442c312bcb1e26 Mon Sep 17 00:00:00 2001 From: Fotis Evangelou Date: Sun, 9 Jun 2024 05:03:49 +0300 Subject: [PATCH] Correct existing index key check --- install.k2.php | 2 +- script.k2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.k2.php b/install.k2.php index 8ef0c4e0..e7449cf8 100644 --- a/install.k2.php +++ b/install.k2.php @@ -167,7 +167,7 @@ $indexes = $db->loadObjectList(); $indexExists = false; foreach ($indexes as $index) { - if ($index->Key_name == 'category') { + if ($index->Key_name == 'idx_category') { $indexExists = true; } } diff --git a/script.k2.php b/script.k2.php index af094e77..f4c9440a 100644 --- a/script.k2.php +++ b/script.k2.php @@ -291,7 +291,7 @@ public function update($type) $indexes = $db->loadObjectList(); $indexExists = false; foreach ($indexes as $index) { - if ($index->Key_name == 'category') { + if ($index->Key_name == 'idx_category') { $indexExists = true; } }