diff --git a/character-achievements.php b/character-achievements.php index 966e76077..fadbaeb0c 100644 --- a/character-achievements.php +++ b/character-achievements.php @@ -3,7 +3,7 @@ /** * @package World of Warcraft Armory * @version Release Candidate 1 - * @revision 147 + * @revision 149 * @copyright (c) 2009-2010 Shadez * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @@ -159,6 +159,7 @@ } /** Basic info **/ +$tabUrl = false; $guilds->guid = $characters->guid; if($isCharacter && $guilds->extractPlayerGuildId()) { $tabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); @@ -246,11 +247,13 @@ $last_achievements = $achievements->GetLastAchievements(); if(is_array($last_achievements)) { foreach($last_achievements as $l_achievement) { - $xml->XMLWriter()->startElement('achievement'); - foreach($l_achievement as $l_a_key => $l_a_value) { - $xml->XMLWriter()->writeAttribute($l_a_key, $l_a_value); + if(is_array($l_achievement)) { + $xml->XMLWriter()->startElement('achievement'); + foreach($l_achievement as $l_a_key => $l_a_value) { + $xml->XMLWriter()->writeAttribute($l_a_key, $l_a_value); + } + $xml->XMLWriter()->endElement(); //achievement } - $xml->XMLWriter()->endElement(); //achievement } } $xml->XMLWriter()->endElement(); //summary diff --git a/character-arenateams.php b/character-arenateams.php index 7897de7b7..c4ccb2aae 100644 --- a/character-arenateams.php +++ b/character-arenateams.php @@ -3,7 +3,7 @@ /** * @package World of Warcraft Armory * @version Release Candidate 1 - * @revision 147 + * @revision 149 * @copyright (c) 2009-2010 Shadez * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @@ -57,6 +57,7 @@ $achievements->guid = $characters->guid; $guilds->guid = $characters->guid; $arenateams->guid = $characters->guid; +$tabUrl = false; if($isCharacter && $guilds->extractPlayerGuildId()) { $tabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); $charTabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); diff --git a/character-calendar.php b/character-calendar.php index 24a3d8de2..b712fab39 100644 --- a/character-calendar.php +++ b/character-calendar.php @@ -3,7 +3,7 @@ /** * @package World of Warcraft Armory * @version Release Candidate 1 - * @revision 147 + * @revision 149 * @copyright (c) 2009-2010 Shadez * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @@ -53,6 +53,7 @@ } } /** Basic info **/ +$tabUrl = false; $guilds->guid = $characters->guid; if($isCharacter && $guilds->extractPlayerGuildId()) { $tabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); diff --git a/character-reputation.php b/character-reputation.php index 2975893c3..63a1705f2 100644 --- a/character-reputation.php +++ b/character-reputation.php @@ -3,7 +3,7 @@ /** * @package World of Warcraft Armory * @version Release Candidate 1 - * @revision 147 + * @revision 149 * @copyright (c) 2009-2010 Shadez * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @@ -55,6 +55,7 @@ // Load XSLT template $xml->LoadXSLT('character/reputation.xsl'); /** Basic info **/ +$tabUrl = false; $guilds->guid = $characters->guid; if($isCharacter && $guilds->extractPlayerGuildId()) { $tabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); diff --git a/character-sheet.php b/character-sheet.php index 8d7854f90..899a9fb2f 100644 --- a/character-sheet.php +++ b/character-sheet.php @@ -3,7 +3,7 @@ /** * @package World of Warcraft Armory * @version Release Candidate 1 - * @revision 147 + * @revision 149 * @copyright (c) 2009-2010 Shadez * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @@ -60,6 +60,7 @@ $achievements->guid = $characters->guid; $guilds->guid = $characters->guid; $arenateams->guid = $characters->guid; +$tabUrl = false; if($isCharacter && $guilds->extractPlayerGuildId()) { $tabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); $charTabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); diff --git a/character-statistics.php b/character-statistics.php index 5f292563d..c66acf291 100644 --- a/character-statistics.php +++ b/character-statistics.php @@ -3,7 +3,7 @@ /** * @package World of Warcraft Armory * @version Release Candidate 1 - * @revision 147 + * @revision 149 * @copyright (c) 2009-2010 Shadez * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @@ -96,6 +96,7 @@ } /** Basic info **/ +$tabUrl = false; $guilds->guid = $characters->guid; if($isCharacter && $guilds->extractPlayerGuildId()) { $tabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); diff --git a/character-talents.php b/character-talents.php index 34b8e1848..e558cabe6 100644 --- a/character-talents.php +++ b/character-talents.php @@ -3,7 +3,7 @@ /** * @package World of Warcraft Armory * @version Release Candidate 1 - * @revision 147 + * @revision 149 * @copyright (c) 2009-2010 Shadez * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @@ -56,6 +56,7 @@ $characters->_structCharacter(); $achievements->guid = $characters->guid; $guilds->guid = $characters->guid; +$tabUrl = false; if($isCharacter && $guilds->extractPlayerGuildId()) { $tabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName())); $charTabUrl = sprintf('r=%s&cn=%s&gn=%s', urlencode($armory->armoryconfig['defaultRealmName']), urlencode($characters->name), urlencode($guilds->getGuildName()));