From 0a5ea4dafbfbcd3172b50fec849324294badb326 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Mon, 20 Jan 2014 21:16:37 +0530 Subject: [PATCH] Replace if condition with a better code Signed-off-by: Umair Khan --- .../navigation/Nodes/Node_Database_Container.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libraries/navigation/Nodes/Node_Database_Container.class.php b/libraries/navigation/Nodes/Node_Database_Container.class.php index 052d5485c1..5d4f52772d 100644 --- a/libraries/navigation/Nodes/Node_Database_Container.class.php +++ b/libraries/navigation/Nodes/Node_Database_Container.class.php @@ -30,11 +30,7 @@ class Node_Database_Container extends Node $new = PMA_NodeFactory::getInstance( 'Node', _pgettext('Create new database', 'New') ); - if($GLOBALS['is_create_db_priv']) { - $new->isNew = true; - } else { - $new->isNew = false; - } + $new->isNew = $GLOBALS['is_create_db_priv']; $new->icon = PMA_Util::getImage('b_newdb.png', ''); $new->links = array( 'text' => 'server_databases.php?server=' . $GLOBALS['server']