diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-02 11:42:13 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-02 11:42:13 -0800 |
commit | fe11e34cea8ea31c048af5f38d63220850b0293d (patch) | |
tree | 49d0b75afa8701885e4f1d4831ad9bae8bffa500 /modules/gallery/views/admin_advanced_settings.html.php | |
parent | 370faf5f265e634b0828be9695cd6eb9676ff6f7 (diff) |
Change the view to display 'empty' when the variable value is a null string(""). Fixes ticket #987.
Diffstat (limited to 'modules/gallery/views/admin_advanced_settings.html.php')
-rw-r--r-- | modules/gallery/views/admin_advanced_settings.html.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/views/admin_advanced_settings.html.php b/modules/gallery/views/admin_advanced_settings.html.php index 2d4b11a1..1f7d2f64 100644 --- a/modules/gallery/views/admin_advanced_settings.html.php +++ b/modules/gallery/views/admin_advanced_settings.html.php @@ -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> |