NoAcctUriException->profile not $e directly

This commit is contained in:
Mikael Nordfeldth 2016-02-18 00:13:59 +01:00
parent a361fdbd77
commit 543d968b81
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ class ToSelector extends Widget
try {
$choices[$value] = substr($users->getAcctUri(), 5) . " [{$users->getBestName()}]";
} catch (ProfileNoAcctUriException $e) {
$choices[$value] = "[?@?] " . $e->getBestName();
$choices[$value] = "[?@?] " . $e->profile->getBestName();
}
}
@ -118,7 +118,7 @@ class ToSelector extends Widget
try {
$choices[$value] = substr($this->to->getAcctUri(), 5) . " [{$this->to->getBestName()}]";
} catch (ProfileNoAcctUriException $e) {
$choices[$value] = "[?@?] " . $e->getBestName();
$choices[$value] = "[?@?] " . $e->profile->getBestName();
}
}