aboutsummaryrefslogtreecommitdiff
path: root/src/controller/UserController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/UserController.php')
-rw-r--r--src/controller/UserController.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/controller/UserController.php b/src/controller/UserController.php
index 9746a47..f911d2d 100644
--- a/src/controller/UserController.php
+++ b/src/controller/UserController.php
@@ -92,7 +92,13 @@ class UserController
92 $_SESSION['user']['role'] = $user->getRole(); 92 $_SESSION['user']['role'] = $user->getRole();
93 93
94 EmailService::cleanEmails($entityManager); 94 EmailService::cleanEmails($entityManager);
95 Backup::mySQLdump($entityManager, 'auto'); // créer un nouveau backup 95
96 try{
97 Backup::mySQLdump($entityManager, 'auto'); // créer un nouveau backup
98 }
99 catch(RuntimeException $e){
100 echo '<script>window.error_message = "' . $e->getMessage() . '";</script>';
101 }
96 102
97 $url = new URL(isset($_GET['from']) ? ['page' => $_GET['from']] : []); 103 $url = new URL(isset($_GET['from']) ? ['page' => $_GET['from']] : []);
98 isset($_GET['id']) ? $url->addParams(['id' => $_GET['id']]) : ''; 104 isset($_GET['id']) ? $url->addParams(['id' => $_GET['id']]) : '';