Fix unreachable log message on exception

This commit is contained in:
Molkobain
2019-04-01 16:52:22 +02:00
parent b5c4801beb
commit c59d3cc624

View File

@@ -150,8 +150,8 @@ try
$sAuthent = utils::ReadParam('authent', '', false, 'raw_data');
if (!file_exists(APPROOT.'data/setup/authent') || $sAuthent !== file_get_contents(APPROOT.'data/setup/authent'))
{
throw new SecurityException('Setup operations are not allowed outside of the setup');
SetupPage::log_error("Setup operations are not allowed outside of the setup");
throw new SecurityException('Setup operations are not allowed outside of the setup');
}
switch($sOperation)