#554 Fixes and General fixes

+Fixed a bug that could have happened in the statistics if there were 0
users in the server
+Fixed a compatibility bug with PHP 7.0
This commit is contained in:
iopietro
2018-07-24 18:19:44 +02:00
parent 81dcd16e3d
commit ee0b4984c2
18 changed files with 375 additions and 418 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ class funct
if(!isset($selectedArtifact) || !isset($artifactQuantity) || !isset($playerId) || empty($selectedArtifact) ||
!is_numeric($artifactQuantity) || !is_numeric($playerId) || strpos($selectedArtifact, ':') === false ||
$database->getUserField($playerId, "username", 0) == "[?]"){
header("location: admin.php");
header("location: admin.php?p=artifacts&error=0");
exit;
}
@@ -125,7 +125,7 @@ class funct
//Check if the artifact has been found or if doesn't exist
if(empty($chosenArtifact)){
header("location: admin.php");
header("location: admin.php?p=artifacts&error=1");
exit;
}