mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-23 06:48:41 +00:00
fix phpcs
This commit is contained in:
parent
792fcf900a
commit
bdeca100d5
|
|
@ -101,7 +101,11 @@ final class ConsoleSessionHandler implements \SessionHandlerInterface, \SessionI
|
|||
*/
|
||||
public function read($id)
|
||||
{
|
||||
return (string) @\file_get_contents($this->savePath . '/sess_' . $id);
|
||||
if (!\file_exists($this->savePath . '/sess_' . $id)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return (string) \file_get_contents($this->savePath . '/sess_' . $id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user