Problem running with multilanguage support

End-level spell book display, showing the spell books players have and don't have

Moderator: Ghuda

Problem running with multilanguage support

Postby RainRider » Thu Nov 02, 2006 9:10 am

I had the following output when running SpellBooks 1.7.0-2 in multilanguage mode ($addon_conf['spellbooks']['multilanguage'] = 1; in conf.php)

Warning: array_keys() [function.array-keys]: The first argument should be an array in /is/htdocs/wp1040705_IW8P5TCUGH/www/roster/addons/SpellBooks/index.php on line 40
Warning: Invalid argument supplied for foreach() in /is/htdocs/wp1040705_IW8P5TCUGH/www/roster/addons/SpellBooks/index.php on line 42
Warning: array_keys() [function.array-keys]: The first argument should be an array in /is/htdocs/wp1040705_IW8P5TCUGH/www/roster/addons/SpellBooks/index.php on line 40
Warning: Invalid argument supplied for foreach() in /is/htdocs/wp1040705_IW8P5TCUGH/www/roster/addons/SpellBooks/index.php on line 42
Warning: array_keys() [function.array-keys]: The first argument should be an array in /is/htdocs/wp1040705_IW8P5TCUGH/www/roster/addons/SpellBooks/index.php on line 40
Warning: Invalid argument supplied for foreach() in /is/htdocs/wp1040705_IW8P5TCUGH/www/roster/addons/SpellBooks/index.php on line 42
Warning: Invalid argument supplied for foreach() in /is/htdocs/wp1040705_IW8P5TCUGH/www/roster/addons/SpellBooks/index.php on line 51


To fix this open index.php
Find
Code: Select all

    
foreach ($roster_conf['multilanguages'] as $language){

        
$tmpArray array_keys($Book['Tier_0'][$language]);
 

und replace it with
Code: Select all

    
foreach ($roster_conf['multilanguages'] as $language){

        
$tmpArray array_keys($Book[$language]);
 


Cheers
Rain
RainRider
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Thu Jul 20, 2006 11:47 pm

Return to Spellbooks

Who is online

Users browsing this forum: No registered users and 0 guests