/** * @return Member */ public static function getInstance() { if (empty(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * @return Member */ public static function getInstance() { if (empty(self::$instance)) { if (session_status() != PHP_SESSION_ACTIVE) { session_start(); } self::$instance = new self(); } return self::$instance; }