From f8e6631dfdcf9363399e49c248bf439f3001b1e6 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Fri, 28 Oct 2011 17:16:52 +0100 Subject: [PATCH] "No index" or "duplicate indexes" on a column are not errors --- libraries/Index.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Index.class.php b/libraries/Index.class.php index d790df9136..b718f63d70 100644 --- a/libraries/Index.class.php +++ b/libraries/Index.class.php @@ -415,7 +415,7 @@ class PMA_Index $indexes = PMA_Index::getFromTable($table, $schema); if (count($indexes) < 1) { - return PMA_Message::error(__('No index defined!'))->getDisplay(); + return PMA_Message::notice(__('No index defined!'))->getDisplay(); } $r = ''; @@ -565,7 +565,7 @@ class PMA_Index // did not find any difference // so it makes no sense to have this two equal indexes - $message = PMA_Message::error(__('The indexes %1$s and %2$s seem to be equal and one of them could possibly be removed.')); + $message = PMA_Message::notice(__('The indexes %1$s and %2$s seem to be equal and one of them could possibly be removed.')); $message->addParam($each_index->getName()); $message->addParam($while_index->getName()); $output .= $message->getDisplay(); -- 2.11.4.GIT