[FIX] undefined index: USERDATA
This commit is contained in:
parent
65c7edf503
commit
a1493032d2
0
cronjobs/run-crons.sh
Normal file → Executable file
0
cronjobs/run-crons.sh
Normal file → Executable file
@ -8,11 +8,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
||||
$debug->append('No cached version available, fetching from backend', 3);
|
||||
|
||||
$getBlocksSolvedbyAccount = $statistics->getBlocksSolvedbyAccount();
|
||||
$getBlocksSolvedbyWorker = $statistics->getBlocksSolvedbyWorker($_SESSION['USERDATA']['id']);
|
||||
|
||||
// Propagate content our template
|
||||
$smarty->assign("BLOCKSSOLVEDBYACCOUNT", $getBlocksSolvedbyAccount);
|
||||
$smarty->assign("BLOCKSSOLVEDBYWORKER", $getBlocksSolvedbyWorker);
|
||||
} else {
|
||||
$debug->append('Using cached page', 3);
|
||||
}
|
||||
@ -20,6 +16,8 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
||||
if ($setting->getValue('acl_blockfinder_statistics')) {
|
||||
$smarty->assign("CONTENT", "finder.tpl");
|
||||
} else if ($user->isAuthenticated()) {
|
||||
$getBlocksSolvedbyWorker = $statistics->getBlocksSolvedbyWorker($_SESSION['USERDATA']['id']);
|
||||
$smarty->assign("BLOCKSSOLVEDBYWORKER", $getBlocksSolvedbyWorker);
|
||||
$smarty->assign("CONTENT", "finder.tpl");
|
||||
} else {
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Block Finders are currently disabled. Please try again later.', 'TYPE' => 'errormsg');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user