Guard more count() calls in common framework classes

This commit is contained in:
Kijin Sung 2017-12-09 02:49:01 +09:00
parent 3dbc600aa9
commit e3a2c1a6aa
3 changed files with 3 additions and 3 deletions

View file

@ -240,7 +240,7 @@ class Session
}
// Start the session if it contains data.
if ($force || (count($_SESSION) && !headers_sent()))
if ($force || (@count($_SESSION) && !headers_sent()))
{
// Copy session data to a temporary array.
$temp = $_SESSION;