diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index 14edad66b08..2538841dcd0 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -1562,9 +1562,9 @@ if (count($object->records) > 0)
}
else dol_print_error($db);
- if ($pagepreviousid) print ''.img_previous($langs->trans("PreviousContainer")).'';
+ if ($pagepreviousid) print ''.img_previous($langs->trans("PreviousContainer")).'';
else print ''.img_previous($langs->trans("PreviousContainer")).'';
- if ($pagenextid) print ''.img_next($langs->trans("NextContainer")).'';
+ if ($pagenextid) print ''.img_next($langs->trans("NextContainer")).'';
else print ''.img_next($langs->trans("NextContainer")).'';
$websitepage = new WebSitePage($db);