diff --git a/htdocs/modules/system/templates/system_imagemanager.html b/htdocs/modules/system/templates/system_imagemanager.html
index 8621b46fa..ca2bd39e7 100644
--- a/htdocs/modules/system/templates/system_imagemanager.html
+++ b/htdocs/modules/system/templates/system_imagemanager.html
@@ -56,8 +56,8 @@
-
<{$pagenav}>
-<{if $image_total > 0}>
+<{$pagenav|default:''}>
+<{if $image_total|default:0 > 0}>
<{$lang_imagename}> |
@@ -81,7 +81,7 @@
<{/if}>
-<{$pagenav}>
+<{$pagenav|default:''}>
-<{$pagenav}>
-<{if $image_total > 0}>
+<{$pagenav|default:''}>
+<{if $image_total|default:0 > 0}>
<{$lang_imagename}> |
@@ -81,7 +81,7 @@
<{/if}>
-<{$pagenav}>
+<{$pagenav|default:''}>