This commit is contained in:
Thomas Zilio 2019-11-15 14:53:46 +01:00
parent d7c5f2fa0e
commit 5bbada6ebf
2 changed files with 7 additions and 1 deletions

View File

@ -14,7 +14,7 @@ switch ($op) {
if ($dbo->isConnected() && $dbo->isInstalled() && auth()->attempt($username, $password)) { if ($dbo->isConnected() && $dbo->isInstalled() && auth()->attempt($username, $password)) {
$_SESSION['keep_alive'] = true; $_SESSION['keep_alive'] = true;
// Rimozione log vecchi // Rimozione log vecchi
//$dbo->query('DELETE FROM `zz_operations` WHERE DATE_ADD(`created_at`, INTERVAL 30*24*60*60 SECOND) <= NOW()'); //$dbo->query('DELETE FROM `zz_operations` WHERE DATE_ADD(`created_at`, INTERVAL 30*24*60*60 SECOND) <= NOW()');
} else { } else {
$status = auth()->getCurrentStatus(); $status = auth()->getCurrentStatus();

View File

@ -19,4 +19,10 @@ if (isset($id_record)) {
} catch (Exception $e) { } catch (Exception $e) {
$error = true; $error = true;
} }
if(empty($record)){
flash()->warning(tr('Nessuna fattura da importare!'));
redirect(ROOTDIR.'/controller.php?id_module='.$id_module);
}
} }