From 1526c6cae9e79beb71154804c135faf1474c749c Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 28 Jan 2014 11:37:29 +0100 Subject: [PATCH] Fixed "Take this ridiculously retarded IF formatting!" by @sekjun9878 --- src/utils/Config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/Config.php b/src/utils/Config.php index 4dce87927..4ef1ea5bc 100644 --- a/src/utils/Config.php +++ b/src/utils/Config.php @@ -256,13 +256,13 @@ class Config{ * @return boolean */ public function exists($k, $lowercase = false){ - if($lowercase === true)://Take this ridiculously retarded IF formatting! - @sekjun98888877777778888888888888 + if($lowercase === true){ $k = strtolower($k);//Convert requested key to lower $array = array_change_key_case($this->config, CASE_LOWER);//Change all keys in array to lower return isset($array[$k]);//Find $k in modified array - else: + }else{ return isset($this->config[$k]); - endif; + } } /**