File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -557,3 +557,13 @@ function backendtpl_with_webdomains() {
557557function validate_password ($ password ) {
558558 return preg_match ('/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(.){8,}$/ ' , $ password );
559559}
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 " );
Original file line number Diff line number Diff line change 1616 })
1717</script>
1818
19- <?php if (!empty ($ _SESSION ['error_msg ' ])) unset($ _SESSION ['error_msg ' ]); ?>
2019
2120<?php
2221$ customScriptDirectory = new DirectoryIterator ($ _SERVER ["HESTIA " ] . "/web/js/custom_scripts " );
You can’t perform that action at this time.
0 commit comments