Сессия может быть пустой, но не содержать null.

This commit is contained in:
Igor Barkov (iwork) 2020-09-28 16:27:57 +03:00
parent 6133f50670
commit ef307ff1d7
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
ob_start("ob_gzhandler");
session_start();
if (is_null($_SESSION['uid'])) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}