Skip to content

Commit

Permalink
#55 Change the if clause order
Browse files Browse the repository at this point in the history
Check to see if Xdbug is NOT enabled
  • Loading branch information
waseemsadiq committed Jun 2, 2022
1 parent 18a90af commit 8b24017
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sites/dashboard/pages/php/php-xdebug.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
---
<section class="max-w-7xl mx-auto py-4 px-5 min-h-screen<?= (!function_exists('xdebug_info')) ? ' grid place-items-center' : '' ; ?>">

<? if (function_exists('xdebug_info')) : ?>

<object type="text/html" data="http://localhost:8080/__info/php-xdebug" class="min-h-screen w-full"></object>

<? else : ?>
<? if (!function_exists('xdebug_info')) : ?>

<div class="flex bg-red-100 rounded-lg p-4 mb-4 text-sm text-red-700" role="alert">
<svg class="w-5 h-5 inline mr-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>
Expand All @@ -23,6 +19,10 @@
</div>
</div>

<? else : ?>

<object type="text/html" data="http://localhost:8080/__info/php-xdebug" class="min-h-screen w-full"></object>

<? endif ?>

</section>

0 comments on commit 8b24017

Please sign in to comment.