From a502b5d082f9b11d2f8d50b1746cd1201150988b Mon Sep 17 00:00:00 2001 From: football Date: Sun, 5 Mar 2017 18:04:34 +0100 Subject: [PATCH] Fix problem in admin-help-section on phpBB3.2 (no help is shown): [phpBB Debug] PHP Warning: in file [ROOT]/ext/football/football/acp/football_module.php on line 80: Invalid argument supplied for foreach() --- acp/football_module.php | 2 +- language/de/help_football.php | 4 ++-- language/en/help_football.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/acp/football_module.php b/acp/football_module.php index c4dcb35..6e3a91c 100644 --- a/acp/football_module.php +++ b/acp/football_module.php @@ -77,7 +77,7 @@ class football_module )); // Pull the array data from the lang pack - foreach ($user->help as $help_ary) + foreach ($user->lang['FOOTBALL_HELP_FAQ'] as $help_ary) { if ($help_ary[0] == '--') { diff --git a/language/de/help_football.php b/language/de/help_football.php index a4a17e5..e7418e3 100644 --- a/language/de/help_football.php +++ b/language/de/help_football.php @@ -37,7 +37,7 @@ if ( empty($lang) || !is_array($lang) ) // ’ » „ “ — … // -$help = array( +$lang = array_merge($lang, array('FOOTBALL_HELP_FAQ' => array( array( 0 => '--', 1 => 'Erste Schritte' @@ -527,5 +527,5 @@ mit gleichem Status aktualisieren" zu wählen.' Datenquelle erfolgen. Benötigt man innerhalb dieser Zeit trotzdem aktualisierte Daten, so muss man den Cache löschen um einen erneuten Download von der Datenquelle zu erzwingen.' ), -); +))); ?> \ No newline at end of file diff --git a/language/en/help_football.php b/language/en/help_football.php index f14ec0a..c87bb16 100644 --- a/language/en/help_football.php +++ b/language/en/help_football.php @@ -40,7 +40,7 @@ if ( empty($lang) || !is_array($lang) ) // ’ » „ “ — … // -$help = array( +$lang = array_merge($lang, array('FOOTBALL_HELP_FAQ' => array( array( 0 => '--', 1 => 'First steps' @@ -499,5 +499,5 @@ Preliminary results from the update are not used. If these should be taken, this 1 => 'The seasons- and the leagues-data are stored for 5 minutes in the cache, so that the data are downloaded from Source only once. If you need updated data within that time anyway, you have to delete the cache to force a new download from the Source.' ), -); +))); ?> \ No newline at end of file