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