Add more safeguards for the possibility of an empty member_srl

This commit is contained in:
Kijin Sung 2017-02-10 20:59:17 +09:00
parent 57ab94187e
commit 5f7b4837dc
2 changed files with 6 additions and 2 deletions

View file

@ -18,10 +18,10 @@ class SessionHelper
/**
* Constructor.
*
* @param int $member_srl
* @param int $member_srl (optional)
* @return void
*/
public function __construct($member_srl)
public function __construct($member_srl = null)
{
// Load member information.
$member_srl = intval($member_srl);