mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
#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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user