Skip to content

Commit

Permalink
1. 修改login.php判断管理员是否登录的小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
shinn-lancelot committed Jan 18, 2019
1 parent 2e1edba commit 8fbb6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

session_start();
$user = isset($_SESSION['wop_admin_user']) ? $_SESSION['wop_admin_user'] : '';
empty(!$user) && header('Location: ./admin.php');
!empty($user) && header('Location: ./admin.php');

?>

Expand Down

0 comments on commit 8fbb6af

Please sign in to comment.