mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
Fixed "Take this ridiculously retarded IF formatting!" by @sekjun9878
This commit is contained in:
parent
4002d3013d
commit
1526c6cae9
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user