mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-03 02:09:22 -04:00
Change the view to display 'empty' when the variable value is a null string(""). Fixes ticket #987.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user