Skip to content

Commit c8f1ebf

Browse files
tlcd96jaapmarcus
andauthored
Update to fix error on hestiacp main (hestiacp#3087)
* Update to fix error on hestiacp main This error does not throw in Hestia direct access (8083) but it's in the logs, when cp template is applied, there's an error 500 because of this missing piece of code in main. * Fix prettier output Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent 44314eb commit c8f1ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/inc/main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function destroy_sessions() {
6666
}
6767

6868
// Checking user to use session from the same IP he has been logged in
69-
if ($_SESSION["user_combined_ip"] != $user_combined_ip) {
69+
if ($_SESSION["user_combined_ip"] != $user_combined_ip && isset($_SESSION["user"])) {
7070
$v_user = quoteshellarg($_SESSION["user"]);
7171
$v_session_id = quoteshellarg($_SESSION["token"]);
7272
exec(HESTIA_CMD . "v-log-user-logout " . $v_user . " " . $v_session_id, $output, $return_var);

0 commit comments

Comments
 (0)