Fix the display when no value is used for a variable on the system -> variables page.

This commit is contained in:
Mark Crane 2012-09-24 20:39:53 +00:00
parent 1b781dd048
commit 1f0f439dbb
1 changed files with 3 additions and 5 deletions

View File

@ -44,7 +44,6 @@ else {
//show the content //show the content
echo "<div align='center'>"; echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n"; echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
echo "<tr class='border'>\n"; echo "<tr class='border'>\n";
echo " <td align=\"center\">\n"; echo " <td align=\"center\">\n";
echo " <br>"; echo " <br>";
@ -57,8 +56,7 @@ else {
echo " </tr>\n"; echo " </tr>\n";
echo "</table>\n"; echo "</table>\n";
$sql = ""; $sql = "select * from v_vars ";
$sql .= "select * from v_vars ";
if (strlen($order_by)> 0) { if (strlen($order_by)> 0) {
$sql .= "order by $order_by $order "; $sql .= "order by $order_by $order ";
} }
@ -128,8 +126,8 @@ else {
} }
echo "<tr >\n"; echo "<tr >\n";
echo " <td valign='top' align='left' class='".$row_style[$c]."'>".substr($row['var_name'],0,32)."</td>\n"; echo " <td valign='top' align='left' class='".$row_style[$c]."'>".substr($row['var_name'],0,32)."&nbsp;</td>\n";
echo " <td valign='top' align='left' class='".$row_style[$c]."'>".substr($var_value,0,30)."</td>\n"; echo " <td valign='top' align='left' class='".$row_style[$c]."'>".substr($var_value,0,30)."&nbsp;</td>\n";
//echo " <td valign='top' align='left' class='".$row_style[$c]."'>".$row['var_cat']."</td>\n"; //echo " <td valign='top' align='left' class='".$row_style[$c]."'>".$row['var_cat']."</td>\n";
//echo " <td valign='top' align='left' class='".$row_style[$c]."'>".$row['var_order']."</td>\n"; //echo " <td valign='top' align='left' class='".$row_style[$c]."'>".$row['var_order']."</td>\n";
echo " <td valign='top' align='left' class='".$row_style[$c]."'>".$row['var_enabled']."</td>\n"; echo " <td valign='top' align='left' class='".$row_style[$c]."'>".$row['var_enabled']."</td>\n";