Transfer to git
This commit is contained in:
16
includes/error_handling.inc.php
Normal file
16
includes/error_handling.inc.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
if (isset($_SESSION["errors"])) {
|
||||
$errors = $_SESSION["errors"];
|
||||
|
||||
foreach ($errors as $error => $error_reading) {
|
||||
?>
|
||||
<br>
|
||||
<p class="error"><?php echo $error_reading ?></p>
|
||||
<?php
|
||||
}
|
||||
|
||||
unset($_SESSION["errors"]);
|
||||
}
|
||||
Reference in New Issue
Block a user