Skip to content

Commit

Permalink
Used session_status() instead of $_SESSION in Mage_Core_Model_App (#3145
Browse files Browse the repository at this point in the history
)
  • Loading branch information
fballiano committed Apr 5, 2023
1 parent ec6ac1a commit 8d5e405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public function run($params)
} else {
flush();
}
if (isset($_SESSION)) {
if (session_status() === PHP_SESSION_ACTIVE) {
session_write_close();
}

Expand Down

0 comments on commit 8d5e405

Please sign in to comment.