Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
Meh xD
Browse files Browse the repository at this point in the history
  • Loading branch information
iksaku committed Mar 1, 2015
1 parent c8414b6 commit e91a289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EssentialsPE/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ public function checkConfig(){
}
}

$numerics = ["oversized-stacks", "near-radius-limit", "near-default-radius"];
foreach($numerics as $key){
$integers = ["oversized-stacks", "near-radius-limit", "near-default-radius"];

This comment has been minimized.

Copy link
@PEMapModder

PEMapModder Mar 5, 2015

Member

huh?

This comment has been minimized.

Copy link
@alejzeis

alejzeis Mar 5, 2015

Strings arrays are now integers. Nice.

This comment has been minimized.

Copy link
@PEMapModder

PEMapModder Mar 5, 2015

Member

Why not just foreach(["oversized-stacks", "near-radius-limit", "near-default-radius"] as $key)?

This comment has been minimized.

Copy link
@iksaku

iksaku Mar 6, 2015

Author

IDK xD But I better identify the type of the values xD

foreach($integers as $key){
$value = null;
if(!is_numeric($cfg->get($key))){
switch($key){
Expand Down

4 comments on commit e91a289

@iksaku
Copy link
Author

@iksaku iksaku commented on e91a289 Mar 4, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iksaku
Copy link
Author

@iksaku iksaku commented on e91a289 Mar 4, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iksaku
Copy link
Author

@iksaku iksaku commented on e91a289 Mar 4, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iksaku
Copy link
Author

@iksaku iksaku commented on e91a289 Mar 4, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.