Avoid some warnings when running batch jobs

This commit is contained in:
Latif Khalifa
2014-04-29 00:21:14 +02:00
parent 7070dfb5de
commit 50cbfda628
2 changed files with 82 additions and 81 deletions

View File

@@ -71,8 +71,8 @@ if (!DBH::$db->connect($DB_NAME, $DB_HOST, $DB_USER, $DB_PASS)) {
Option::init();
$S = new Session();
if (!defined('NO_SESSION') && PHP_SAPI != "cli") {
$S = new Session();
$S->check();
}