From 01e4441b6b60df50117b205ffd8ab9604276bf2e Mon Sep 17 00:00:00 2001
From: Znote
Date: Mon, 24 Oct 2016 01:06:44 +0200
Subject: [PATCH] Fixed some PHP warnings
---
admin.php | 6 +++---
config.php | 16 +++++++-------
engine/cache/deaths.cache.php | 1 -
engine/cache/gallery.cache.php | 1 -
engine/cache/highscores.cache.php | 2 +-
engine/cache/houses.cache.php | 1 -
engine/cache/houses/sqldata.cache.php | 1 -
engine/cache/killers.cache.php | 1 -
engine/cache/lastkillers.cache.php | 1 -
engine/cache/news.cache.php | 2 +-
engine/cache/support.cache.php | 1 -
engine/cache/topPlayer.cache.php | 2 +-
engine/cache/victims.cache.php | 1 -
highscores.php | 31 ++++++++++++++++-----------
14 files changed, 33 insertions(+), 34 deletions(-)
diff --git a/admin.php b/admin.php
index 2254c8f..98291b3 100644
--- a/admin.php
+++ b/admin.php
@@ -108,7 +108,7 @@ if (empty($_POST) === false) {
}
// Teleport Player
- if (in_array($_POST['from'], ['all', 'only'])) {
+ if (isset($_POST['from']) && in_array($_POST['from'], ['all', 'only'])) {
$from = $_POST['from'];
if ($from === 'only') {
if (empty($_POST['player_name']) || !user_character_exist($_POST['player_name'])) {
@@ -160,13 +160,13 @@ echo "Last cached on: ". getClock($basic['cached'], true) .".
";
-
- Permanently Delete/erase character from database:
+ Permanently delete/erase character from database:
-
- Ban/violate :3 character and/or his account:
+ Ban character and/or account: