Fix #675
This commit is contained in:
parent
d7c5f2fa0e
commit
5bbada6ebf
|
@ -14,7 +14,7 @@ switch ($op) {
|
|||
if ($dbo->isConnected() && $dbo->isInstalled() && auth()->attempt($username, $password)) {
|
||||
$_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()');
|
||||
} else {
|
||||
$status = auth()->getCurrentStatus();
|
||||
|
|
|
@ -19,4 +19,10 @@ if (isset($id_record)) {
|
|||
} catch (Exception $e) {
|
||||
$error = true;
|
||||
}
|
||||
|
||||
if(empty($record)){
|
||||
flash()->warning(tr('Nessuna fattura da importare!'));
|
||||
|
||||
redirect(ROOTDIR.'/controller.php?id_module='.$id_module);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue