diff --git a/htdocs/core/customreports.php b/htdocs/core/customreports.php
index aa93acd4a75..e6d773f788d 100644
--- a/htdocs/core/customreports.php
+++ b/htdocs/core/customreports.php
@@ -313,7 +313,7 @@ foreach ($arrayoftype as $key => $val) {
}
}
print $form->selectarray('objecttype', $newarrayoftype, $objecttype, 0, 0, 0, '', 1, 0, 0, '', 'minwidth200', 1);
-if (empty($conf->use_javascript_ajax)) print '';
+if (empty($conf->use_javascript_ajax)) print '';
else {
print '