Skip to content

Commit

Permalink
Correct existing index key check
Browse files Browse the repository at this point in the history
  • Loading branch information
fevangelou committed Jun 9, 2024
1 parent e3d97a6 commit 6f3f09e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install.k2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion script.k2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 6f3f09e

Please sign in to comment.