Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added proper display of Null defaults in table structure view.

  • Loading branch information...
commit 38c8cd1a9042ccbb437f9cd002a2621d8c21571e 1 parent 207c6fc
Nick Coutsos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  structure.php
View
2  structure.php
@@ -155,7 +155,7 @@
echo '<tr>';
echo '<td><div class="item column1">' . $structureRow['Field'] . '</div></td>';
echo '<td><div class="item column2">' . $structureRow['Type'] . '</div></td>';
- echo '<td><div class="item column3">' . $structureRow['Default'] . '</div></td>';
+ echo '<td><div class="item column3">' . (is_null($structureRow['Default']) ? '<em>Null</em>' : $structureRow['Default']) . '</div></td>';
echo '</tr>';
echo '</table>';
echo '</div>';
Please sign in to comment.
Something went wrong with that request. Please try again.