From 44f4bf0244e160689f87bedfb42790f351e9d1c6 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 8 Aug 2017 14:42:59 +0200 Subject: [PATCH] Minor - format code --- main/inc/lib/database.lib.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/database.lib.php b/main/inc/lib/database.lib.php index a81403947e..7ce2a517c0 100755 --- a/main/inc/lib/database.lib.php +++ b/main/inc/lib/database.lib.php @@ -373,7 +373,6 @@ class Database public static function query($query) { $connection = self::getManager()->getConnection(); - if (api_get_setting('server_type') == 'test') { $result = $connection->executeQuery($query); } else { @@ -528,8 +527,13 @@ class Database * @param string $option * @return array */ - public static function select($columns, $table_name, $conditions = array(), $type_result = 'all', $option = 'ASSOC') - { + public static function select( + $columns, + $table_name, + $conditions = array(), + $type_result = 'all', + $option = 'ASSOC' + ) { $conditions = self::parse_conditions($conditions); //@todo we could do a describe here to check the columns ...