made security function protected for overloading

This commit is contained in:
Ulf Gebhardt 2014-12-23 15:22:57 +01:00
parent 076090ea1a
commit 5c04bb515f

View File

@ -122,7 +122,7 @@ class Security {
return (isset($_SESSION[\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL)]) &&
$_SESSION[\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL)] instanceof User);}
private static function startSession(){
protected static function startSession(){
if(!isset($_SESSION) && !headers_sent()){
\session_start();}}
}