Skip to content

Commit

Permalink
Update DatabaseSessionStorage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Oct 30, 2023
1 parent 35aee6c commit feaf898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webfiori/framework/session/DatabaseSessionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct() {
try {
$this->dbController = new SessionDB();
} catch (DatabaseException $ex) {
if (str_contains($ex->getMessage(), '"No connection was found')) {
if (strpos($ex->getMessage(), 'sessions-connection') !== false) {
throw new SessionException("Connection 'sessions-connection' was not found in application configuration.");
} else {
throw $ex;
Expand Down

0 comments on commit feaf898

Please sign in to comment.