Skip to content

Commit

Permalink
fix #156 Warning(E_WARNING): count(): Parameter must be an array or a…
Browse files Browse the repository at this point in the history
…n object that implements Countable
  • Loading branch information
nobuhiko committed Aug 16, 2018
1 parent 8d71efa commit f6576ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion data/Smarty/templates/default/site_frame.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<!--{strip}-->
<!--{* ▼Head COLUMN*}-->
<!--{if $arrPageLayout.HeadNavi|@count > 0}-->
<!--{if !empty($arrPageLayout.HeadNavi)}-->
<!--{* ▼上ナビ *}-->
<!--{foreach key=HeadNaviKey item=HeadNaviItem from=$arrPageLayout.HeadNavi}-->
<!--{* ▼<!--{$HeadNaviItem.bloc_name}--> *}-->
Expand Down
18 changes: 9 additions & 9 deletions data/Smarty/templates/default/site_main.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<a name="top" id="top"></a>

<!--{* ▼HeaderHeaderTop COLUMN*}-->
<!--{if $arrPageLayout.HeaderTopNavi|@count > 0}-->
<!--{if !empty($arrPageLayout.HeaderTopNavi)}-->
<div id="headertopcolumn">
<!--{* ▼上ナビ *}-->
<!--{foreach key=HeaderTopNaviKey item=HeaderTopNaviItem from=$arrPageLayout.HeaderTopNavi}-->
Expand All @@ -56,7 +56,7 @@
<div id="container" class="clearfix">

<!--{* ▼TOP COLUMN*}-->
<!--{if $arrPageLayout.TopNavi|@count > 0}-->
<!--{if !empty($arrPageLayout.TopNavi)}-->
<div id="topcolumn">
<!--{* ▼上ナビ *}-->
<!--{foreach key=TopNaviKey item=TopNaviItem from=$arrPageLayout.TopNavi}-->
Expand All @@ -74,7 +74,7 @@
<!--{* ▲TOP COLUMN*}-->

<!--{* ▼LEFT COLUMN *}-->
<!--{if $arrPageLayout.LeftNavi|@count > 0}-->
<!--{if !empty($arrPageLayout.LeftNavi)}-->
<div id="leftcolumn" class="side_column">
<!--{* ▼左ナビ *}-->
<!--{foreach key=LeftNaviKey item=LeftNaviItem from=$arrPageLayout.LeftNavi}-->
Expand All @@ -95,12 +95,12 @@
<div id="main_column" <!--{**}-->
class="colnum<!--{$tpl_column_num|h}-->
<!--{if $tpl_column_num == 2}-->
<!--{" "}--><!--{if $arrPageLayout.LeftNavi|@count == 0}-->left<!--{else}-->right<!--{/if}-->
<!--{" "}--><!--{if empty($arrPageLayout.LeftNavi)}-->left<!--{else}-->right<!--{/if}-->
<!--{/if}-->
"
>
<!--{* ▼メイン上部 *}-->
<!--{if $arrPageLayout.MainHead|@count > 0}-->
<!--{if !empty($arrPageLayout.MainHead)}-->
<!--{foreach key=MainHeadKey item=MainHeadItem from=$arrPageLayout.MainHead}-->
<!-- ▼<!--{$MainHeadItem.bloc_name}--> -->
<!--{if $MainHeadItem.php_path != ""}-->
Expand All @@ -118,7 +118,7 @@
<!-- ▲メイン -->

<!--{* ▼メイン下部 *}-->
<!--{if $arrPageLayout.MainFoot|@count > 0}-->
<!--{if !empty($arrPageLayout.MainFoot)}-->
<!--{foreach key=MainFootKey item=MainFootItem from=$arrPageLayout.MainFoot}-->
<!-- ▼<!--{$MainFootItem.bloc_name}--> -->
<!--{if $MainFootItem.php_path != ""}-->
Expand All @@ -134,7 +134,7 @@
<!--{* ▲CENTER COLUMN *}-->

<!--{* ▼RIGHT COLUMN *}-->
<!--{if $arrPageLayout.RightNavi|@count > 0}-->
<!--{if !empty($arrPageLayout.RightNavi)}-->
<div id="rightcolumn" class="side_column">
<!--{* ▼右ナビ *}-->
<!--{foreach key=RightNaviKey item=RightNaviItem from=$arrPageLayout.RightNavi}-->
Expand All @@ -152,7 +152,7 @@
<!--{* ▲RIGHT COLUMN *}-->

<!--{* ▼BOTTOM COLUMN*}-->
<!--{if $arrPageLayout.BottomNavi|@count > 0}-->
<!--{if !empty($arrPageLayout.BottomNavi)}-->
<div id="bottomcolumn">
<!--{* ▼下ナビ *}-->
<!--{foreach key=BottomNaviKey item=BottomNaviItem from=$arrPageLayout.BottomNavi}-->
Expand All @@ -177,7 +177,7 @@
<!--{/if}-->
<!--{* ▲FOOTER *}-->
<!--{* ▼FooterBottom COLUMN*}-->
<!--{if $arrPageLayout.FooterBottomNavi|@count > 0}-->
<!--{if !empty($arrPageLayout.FooterBottomNavi)}-->
<div id="footerbottomcolumn">
<!--{* ▼上ナビ *}-->
<!--{foreach key=FooterBottomNaviKey item=FooterBottomNaviItem from=$arrPageLayout.FooterBottomNavi}-->
Expand Down

0 comments on commit f6576ea

Please sign in to comment.