Skip to content

Commit 3a6f9c0

Browse files
committed
fix missing session variable login_opts
1 parent 78f8ad2 commit 3a6f9c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

intropage.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ function array_column($array,$column_name) {
3636
}
3737
}
3838

39+
if (empty($_SESSION['login_opts'])) { // potrebuju to mit v session, protoze treba mi zmeni z konzole na tab a pak spatne vykresluju
40+
$login_opts = db_fetch_cell_prepared('SELECT login_opts
41+
FROM user_auth
42+
WHERE id = ?',
43+
array($_SESSION['sess_user_id']));
44+
45+
$_SESSION['login_opts'] = $login_opts;
46+
}
47+
3948
if ($_SESSION['login_opts'] == 4 || $_SESSION['login_opts'] == 1) { // separated tab, we need header
4049
general_header();
4150
}

0 commit comments

Comments
 (0)