Atualizando Database.class.php
This commit is contained in:
parent
9f4e4f0839
commit
110fff0021
1 changed files with 10 additions and 2 deletions
12
vendor/action/log/log_save.php
vendored
12
vendor/action/log/log_save.php
vendored
|
|
@ -241,15 +241,23 @@ try {
|
|||
);
|
||||
}
|
||||
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 'On');
|
||||
|
||||
|
||||
/** Exclui o registro anterior sobre o banco de dados */
|
||||
$Database->Delete($clientId);
|
||||
|
||||
/** Grava os novos dados do banco de dados */
|
||||
$Database->Save($clientId,
|
||||
if(!$Database->Save($clientId,
|
||||
$jsonLog->database->file_size,
|
||||
$jsonLog->database->last_modified,
|
||||
$jsonLog->database->db_accessible);
|
||||
$jsonLog->database->db_accessible)){
|
||||
|
||||
/** Informo */
|
||||
throw new InvalidArgumentException('Não foi possível cadastrar as informações de banco de dados', 0);
|
||||
|
||||
}
|
||||
|
||||
/** Exclui o log anterior da estação correspondente */
|
||||
$Log->Delete($clientId, $stationId);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue