Undefined variable in 0.5.1
-
wp-content/plugins/guild-armory-roster/WoWArmoryTable.php:295
$lang is undefinedadding $lang = ‘en_US’; fixes the issue however it is recommended to utilize lang setting properly.
I will likely not respond to requests for assistance on fixing your wordpress site if you are having issues. The creator needs to fix the code.
function get_chars() { $options = get_option( 'wow_arsenal_table_options' ); $guild = $options['guildname']; $guild = str_replace(' ','%20',$guild); $server = $options['server']; $server = str_replace(' ','%20',$server); $region = $options['region']; $region = strtolower($region); $this->get_classes(get_locale()); $guildm_data = file_get_contents('https://'.$region.'.api.battle.net/wow/guild/'.$server.'/'.$guild.'?fields=members&locale='.$lang.'&apikey=y5xtbfs6869qcgm2e2czdf4bz9uke8ht'); $guildm_data = json_decode($guildm_data); $members = $guildm_data->members; $this->save_chars($members); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Undefined variable in 0.5.1’ is closed to new replies.