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()
This commit is contained in:
@@ -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] == '--')
|
||||
{
|
||||
|
||||
@@ -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.'
|
||||
),
|
||||
);
|
||||
)));
|
||||
?>
|
||||
@@ -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.'
|
||||
),
|
||||
);
|
||||
)));
|
||||
?>
|
||||
Reference in New Issue
Block a user