diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 5afea1d8bb308..d2ee6f0c6c944 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -1454,7 +1454,7 @@ { print ''; // Close current websitebar to open a new one - $array=$objectpage->fetchAll($object->id); + $array=$objectpage->fetchAll($object->id, 'ASC,ASC', 'type_container,pageurl'); if (! is_array($array) && $array < 0) dol_print_error('', $objectpage->error, $objectpage->errors); $atleastonepage=(is_array($array) && count($array) > 0);