Fix warning in all bets when no bets are shown.

This commit is contained in:
2022-08-11 16:29:35 +02:00
parent abf7e95d08
commit 41397ffbdc
6 changed files with 92 additions and 57 deletions

3
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

6
.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_14" project-jdk-name="openjdk-14" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/phpbb_football_tlw.iml" filepath="$PROJECT_DIR$/.idea/phpbb_football_tlw.iml" />
</modules>
</component>
</project>

9
.idea/phpbb_football_tlw.iml generated Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@@ -214,6 +214,8 @@ foreach ($matches AS $match)
$count_user = 0; $count_user = 0;
$bet_index = 0; $bet_index = 0;
$last_match_index = 0; $last_match_index = 0;
if(!empty($bet_line))
{
foreach ($bet_line[$split_index] AS $user_bet) foreach ($bet_line[$split_index] AS $user_bet)
{ {
if ($bet_index == 0) if ($bet_index == 0)
@@ -271,6 +273,7 @@ foreach ($matches AS $match)
$matchday_sum_total += $total; $matchday_sum_total += $total;
$bet_index = 0; $bet_index = 0;
} }
}
} }
$template->assign_block_vars('match_panel.tendency_footer', array( $template->assign_block_vars('match_panel.tendency_footer', array(