dont attempt to log user in on install

This commit is contained in:
Pepijn Over 2014-03-18 23:28:42 +01:00
parent 086aa41d0c
commit e880aab22a
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class User {
public function __construct(Database $db) {
$this->db_connection = $db->pdo();
if(php_sapi_name() != 'cli') {
if(php_sapi_name() != 'cli' && (!defined('PSM_INSTALL') || !PSM_INSTALL)) {
if(!$this->isSessionStarted()) {
session_start();
}