From 0ee622e0adafad3ee7a5afbcdcc519c7cca544d6 Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 25 Jun 2026 23:17:35 +0200 Subject: restauration BDD console bin/restore_db.php --- src/service/Backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/service') diff --git a/src/service/Backup.php b/src/service/Backup.php index e29ff64..60d1b23 100644 --- a/src/service/Backup.php +++ b/src/service/Backup.php @@ -176,7 +176,7 @@ class Backup } // sécurité cas pas normal if(empty($tables)){ - throw new Exception("Aucune table à supprimer"); + throw new RuntimeException("Aucune table à supprimer"); } $tmp = tempnam('../var', 'tmp_db_codes_'); // crée un fichier avec un nom aléatoire et des droits 600 (concurrence) -- cgit v1.2.3