Browse Source

moved cron error to db if function

CauseFX 4 years ago
parent
commit
dc94128509
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cron.php

+ 2 - 1
cron.php

@@ -110,6 +110,7 @@ if ($Organizr->isLocalOrServer() && $Organizr->hasDB()) {
 } else {
 	if ($Organizr->hasDB()) {
 		$Organizr->logger->warning('Unauthorized user tried to access cron file');
+		die($Organizr->showHTML('Unauthorized', 'Go-on.... Git!!!'));
 	}
-	die($Organizr->showHTML('Unauthorized', 'Go-on.... Git!!!'));
+	die('Unauthorized');
 }