Fix Custom Links in the Top nav from breaking ITFlow if the database isnt updated to 1.4.6

This commit is contained in:
johnnyq
2024-10-30 19:49:39 -04:00
parent 1df98166bd
commit 910787c81c

View File

@@ -28,6 +28,8 @@
<!-- Right navbar links --> <!-- Right navbar links -->
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<?php if(CURRENT_DATABASE_VERSION > '1.4.5' ) { // Check DB Version REMOVE on Decemeber 1st 2024 -Johnny ?>
<!--Custom Nav Link --> <!--Custom Nav Link -->
<?php <?php
$sql_custom_links = mysqli_query($mysqli, "SELECT * FROM custom_links WHERE custom_link_location = 2 AND custom_link_archived_at IS NULL $sql_custom_links = mysqli_query($mysqli, "SELECT * FROM custom_links WHERE custom_link_location = 2 AND custom_link_archived_at IS NULL
@@ -56,6 +58,8 @@
<?php } ?> <?php } ?>
<!-- End Custom Nav Links --> <!-- End Custom Nav Links -->
<?php } // End DB Check ?>
<!-- New Notifications Dropdown --> <!-- New Notifications Dropdown -->
<?php <?php
$sql_notifications = mysqli_query($mysqli, "SELECT * FROM notifications $sql_notifications = mysqli_query($mysqli, "SELECT * FROM notifications