Хороним идиотские ошибки в проверках и инклюдах.
This commit is contained in:
+2
-1
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
session_start();
|
||||
if ($_SESSION['uid'] == null) {
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once "functions.php";
|
||||
$user = $user ?? null;
|
||||
if ($user->battle) {
|
||||
|
||||
Reference in New Issue
Block a user