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