Misc/Typos

This commit is contained in:
Sarjuuk
2018-03-29 18:58:22 +02:00
parent fab71f9325
commit 0912248fd5
4 changed files with 13 additions and 6 deletions

View File

@@ -718,7 +718,7 @@ class AjaxProfile extends AjaxHandler
protected function checkUser($val) protected function checkUser($val)
{ {
if (User::isValidName($val)) if (User::isValidName($val))
return $val return $val;
return null; return null;
} }

View File

@@ -118,7 +118,7 @@ class GuildPage extends GenericPage
/**************/ /**************/
// tab: members // tab: members
$member = new LocalProfileList(array(['p.guild', $this->subjectGUID])); $member = new LocalProfileList(array(['p.guild', $this->subjectGUID], CFG_SQL_LIMIT_NONE));
if (!$member->error) if (!$member->error)
{ {
$this->lvTabs[] = ['profile', array( $this->lvTabs[] = ['profile', array(

View File

@@ -87,7 +87,7 @@ while (DB::Aowow()->selectCell('SELECT value FROM ?_config WHERE `key` = "profil
case TYPE_GUILD: case TYPE_GUILD:
if (!Profiler::getGuildFromRealm($row['realm'], $row['realmGUID'])) if (!Profiler::getGuildFromRealm($row['realm'], $row['realmGUID']))
{ {
$error(TYPE_ARENA_GUILD, $row['realmGUID'], $row['realm']); $error(TYPE_GUILD, $row['realmGUID'], $row['realm']);
continue 2; continue 2;
} }

View File

@@ -4659,14 +4659,21 @@ function ProfilerInventory(_parent) {
_mvInited = true; _mvInited = true;
} }
else { /* aowow: the idea of this is to directly access the swf. it just doesn't work with the ZAMviewerfp11.swf */ /*
aowow: the idea of this is to directly access the swf.
though ZAMviewerfp11.swf is unpredictable af
custom: try/catch; check for empty equipList
*/
else {
_swfModel = $WH.ge(_swfModel.id); _swfModel = $WH.ge(_swfModel.id);
if (_swfModel.clearSlots) { if (_swfModel.clearSlots) {
_swfModel.setAppearance(_profile.hairstyle, _profile.haircolor, _profile.facetype, _profile.skincolor, _profile.features, _profile.haircolor); _swfModel.setAppearance(_profile.hairstyle, _profile.haircolor, _profile.facetype, _profile.skincolor, _profile.features, _profile.haircolor);
_swfModel.clearSlots(emptySlots); try { _swfModel.clearSlots(emptySlots); } catch (x) { }
_swfModel.attachList(equipList); if (equipList.length)
_swfModel.attachList(equipList);
} }
} }
} }