We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 736f6d8 commit ba7c2c5Copy full SHA for ba7c2c5
2 files changed
web/inc/main.php
@@ -557,3 +557,13 @@ function backendtpl_with_webdomains() {
557
function validate_password($password) {
558
return preg_match('/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(.){8,}$/', $password);
559
}
560
+
561
+function unset_alerts() {
562
+ if (!empty($_SESSION["error_msg"])) {
563
+ unset($_SESSION["error_msg"]);
564
+ }
565
+ if (!empty($_SESSION["ok_msg"])) {
566
+ unset($_SESSION["ok_msg"]);
567
568
+}
569
+register_shutdown_function("unset_alerts");
web/templates/includes/js.php
@@ -16,7 +16,6 @@
16
})
17
</script>
18
19
-<?php if (!empty($_SESSION['error_msg'])) unset($_SESSION['error_msg']); ?>
20
21
<?php
22
$customScriptDirectory = new DirectoryIterator($_SERVER["HESTIA"] . "/web/js/custom_scripts");
0 commit comments