diff --git a/include/param_pcmn.inc.php b/include/param_pcmn.inc.php
index 9f0e8bea9..22cfc9bde 100644
--- a/include/param_pcmn.inc.php
+++ b/include/param_pcmn.inc.php
@@ -114,13 +114,14 @@ for ($i=0; $i <$MaxRow; $i++):
for ($e=0;$e<$max;$e++) :
echo '
'.HtmlInput::card_detail($det_qcode[$e],'',' style="display:inline"').'';
endfor;
- echo '';
- if ($max < count($det_qcode)) :
- echo "...";
- else :
- echo HtmlInput::card_detail($A['acode']);
- endif;
+ if ($max < count($det_qcode)) :
+ echo "...";
+ endif;
+ echo '';
+ else :
+ echo HtmlInput::card_detail($A['acode']);
endif;
+
endif;
?>