Skip to content

Commit

Permalink
Only mark a variable as empty if its value is null. So 0 shows as 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Dec 27, 2009
1 parent fc5d1e5 commit 754c531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/views/admin_advanced_settings.html.php
Expand Up @@ -25,7 +25,7 @@
<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 ($var->value): ?>
<? if (isset($var->value)): ?>
<?= html::clean($var->value) ?>
<? else: ?>
<i> <?= t("empty") ?> </i>
Expand Down

0 comments on commit 754c531

Please sign in to comment.