Skip to content

Commit

Permalink
Merge pull request #501 from nanasess/fix-count-php8
Browse files Browse the repository at this point in the history
Fix countable fatal error on PHP8
  • Loading branch information
chihiro-adachi authored Jan 12, 2022
2 parents 3fb5ecf + 9ac3699 commit 41184f2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion data/Smarty/templates/default/cart/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div id="undercolumn_cart">
<h2 class="title"><!--{$tpl_title|h}--></h2>

<!--{if $smarty.const.USE_POINT !== false || count($arrProductsClass) > 0}-->
<!--{if $smarty.const.USE_POINT !== false || !empty($arrProductsClass)}-->
<!--★ポイント案内★-->
<!--{if $smarty.const.USE_POINT !== false}-->
<div class="point_announce">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

 メールアドレス:<!--{$arrOrder.order_email}-->

<!--{if count($arrShipping) >= 1}-->
<!--{if is_array($arrShipping) && count($arrShipping) >= 1}-->
************************************************
 配送情報
************************************************
Expand Down
2 changes: 1 addition & 1 deletion data/Smarty/templates/default/products/detail.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
<div class="review_bloc clearfix">
<p>この商品に対するご感想をぜひお寄せください。</p>
<div class="review_btn">
<!--{if count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
<!--{if is_array($arrReview) && count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
<!--★新規コメントを書き込む★-->
<a href="./review.php"
onclick="eccube.openWindow('./review.php?product_id=<!--{$arrProduct.product_id}-->','review','600','640'); return false;"
Expand Down
2 changes: 1 addition & 1 deletion data/Smarty/templates/mobile/mail_templates/order_mail.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

 メールアドレス:<!--{$arrOrder.order_email}-->

<!--{if count($arrShipping) >= 1}-->
<!--{if is_array($arrShipping) && count($arrShipping) >= 1}-->
■配送情報

<!--{foreach item=shipping name=shipping from=$arrShipping}-->
Expand Down
2 changes: 1 addition & 1 deletion data/Smarty/templates/sphone/products/detail.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
<div class="review_bloc clearfix">
<p>この商品に対するご感想をぜひお寄せください。</p>
<div class="review_btn">
<!--{if count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
<!--{if is_array($arrReview) && count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
<!--★新規コメントを書き込む★-->
<a href="./review.php?product_id=<!--{$arrProduct.product_id}-->" target="_blank" class="btn_sub">新規コメントを書き込む</a>
<!--{/if}-->
Expand Down
2 changes: 1 addition & 1 deletion data/Smarty/templates/sphone/products/list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
<!--{include file="frontparts/search_zero.tpl"}-->
<!--{/foreach}-->

<!--{if count($arrProducts) < $tpl_linemax}-->
<!--{if is_array($arrProducts) && count($arrProducts) < $tpl_linemax}-->
<div class="btn_area">
<p><a rel="external" href="javascript: void(0);" class="btn_more" id="btn_more_product" onClick="getProducts(<!--{$disp_number|h}-->); return false;">もっとみる(+<!--{$disp_number|h}-->件)</a></p>
</div>
Expand Down

0 comments on commit 41184f2

Please sign in to comment.