Change the view to display 'empty' when the variable value is a null string(""). Fixes ticket #987.

This commit is contained in:
Tim Almdal
2010-02-02 11:42:13 -08:00
parent 370faf5f26
commit fe11e34cea

View File

@@ -25,10 +25,10 @@
<a href="<?= url::site("admin/advanced_settings/edit/$var->module_name/" . html::clean($var->name)) ?>"
class="g-dialog-link"
title="<?= t("Edit %var (%module_name)", array("var" => $var->name, "module_name" => $var->module_name))->for_html_attr() ?>">
<? if (isset($var->value)): ?>
<?= html::clean($var->value) ?>
<? else: ?>
<? if (!isset($var->value) || $var->value === ""): ?>
<i> <?= t("empty") ?> </i>
<? else: ?>
<?= html::clean($var->value) ?>
<? endif ?>
</a>
</td>