mirror of
https://github.com/itflow-org/itflow
synced 2026-03-28 00:05:40 +00:00
Set default alert type to primary, as sometimes we set alert_message in session, but not alert_type, causing errors
This commit is contained in:
@@ -63,6 +63,9 @@ scratch. This page gets rid of all links and provides the needed markup only.
|
|||||||
<?php
|
<?php
|
||||||
//Alert Feedback
|
//Alert Feedback
|
||||||
if(!empty($_SESSION['alert_message'])){
|
if(!empty($_SESSION['alert_message'])){
|
||||||
|
if (!isset($_SESSION['alert_type'])){
|
||||||
|
$_SESSION['alert_type'] = "primary";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div class="alert alert-info alert-<?php echo $_SESSION['alert_type']; ?>" id="alert">
|
<div class="alert alert-info alert-<?php echo $_SESSION['alert_type']; ?>" id="alert">
|
||||||
<?php echo $_SESSION['alert_message']; ?>
|
<?php echo $_SESSION['alert_message']; ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user