The first argument should be an array in index.php

Keep track of what item/gear sets you have for your characters

Moderators: PoloDude, rouven

The first argument should be an array in index.php

Postby rouven » Fri May 18, 2007 2:51 pm

Morning,

i have a problem with my ItemSets Output:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /myvolume/html/addons/ItemSets/index.php on line 71

Warning: Invalid argument supplied for foreach() in /myvolume/html/addons/ItemSets/index.php on line 73

Is this i know bug? i haven't found any post for this in the itemstats subforum.

// rouven
User avatar
rouven
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 93
Joined: Fri Jan 12, 2007 4:39 am
Location: Hamburg, Germany

The first argument should be an array in index.php

Postby rouven » Fri May 18, 2007 3:14 pm

The problem seems to be here:

$tmpArray = array_keys($SetT['Tier_0'][$language]);


if i set the language hardcoded, it works for me:

$tmpArray = array_keys($SetT['Tier_0'][deDE]);

is that because i have to update all language files and not only the german one?
User avatar
rouven
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 93
Joined: Fri Jan 12, 2007 4:39 am
Location: Hamburg, Germany

The first argument should be an array in index.php

Postby PoloDude » Mon May 21, 2007 8:42 am

Yes can be the problem as you have the multilingual part enabled of the addon i think
[url=http://eu.wowarmory.com/character-sheet.xml?r=Emerald+Dream&n=Calaglin]Calaglin @ Emerald Dream [EU]
User avatar
PoloDude
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 134
Joined: Tue Jul 04, 2006 3:17 pm
Location: Belgium - Gent


Return to ItemSets

Who is online

Users browsing this forum: No registered users and 0 guests

cron