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)) {
|
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();
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue