dont attempt to log user in on install
This commit is contained in:
parent
086aa41d0c
commit
e880aab22a
|
@ -71,7 +71,7 @@ class User {
|
||||||
public function __construct(Database $db) {
|
public function __construct(Database $db) {
|
||||||
$this->db_connection = $db->pdo();
|
$this->db_connection = $db->pdo();
|
||||||
|
|
||||||
if(php_sapi_name() != 'cli') {
|
if(php_sapi_name() != 'cli' && (!defined('PSM_INSTALL') || !PSM_INSTALL)) {
|
||||||
if(!$this->isSessionStarted()) {
|
if(!$this->isSessionStarted()) {
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue