Bug Fix: Figure out owner url after checking to see if owner exists, not before.
This commit is contained in:
parent
6972203109
commit
d9a5079253
|
@ -44,14 +44,15 @@ class rwinfo_theme_Core {
|
||||||
}
|
}
|
||||||
// rWatcher End Edit
|
// rWatcher End Edit
|
||||||
|
|
||||||
// rWatcher Edit: Display profile instead of web site, if viewable.
|
|
||||||
$str_owner_url = $item->owner->url;
|
|
||||||
if (rwinfo_theme_Core::_can_view_profile_pages(identity::lookup_user($item->owner->id))) {
|
|
||||||
$str_owner_url = user_profile::url($item->owner->id);
|
|
||||||
}
|
|
||||||
// rWatcher End Edit
|
|
||||||
|
|
||||||
if ($item->owner) {
|
if ($item->owner) {
|
||||||
|
// rWatcher Edit: Display profile instead of web site, if viewable.
|
||||||
|
$str_owner_url = $item->owner->url;
|
||||||
|
if (rwinfo_theme_Core::_can_view_profile_pages(identity::lookup_user($item->owner->id))) {
|
||||||
|
$str_owner_url = user_profile::url($item->owner->id);
|
||||||
|
}
|
||||||
|
// rWatcher End Edit
|
||||||
|
|
||||||
$results .= "<li>";
|
$results .= "<li>";
|
||||||
if ($str_owner_url) { //rW Edit str_owner_url
|
if ($str_owner_url) { //rW Edit str_owner_url
|
||||||
$results .= t("By: <a href=\"%owner_url\">%owner_name</a>",
|
$results .= t("By: <a href=\"%owner_url\">%owner_name</a>",
|
||||||
|
|
Reference in New Issue
Block a user