1
0

Bug Fix: Figure out owner url after checking to see if owner exists, not before.

This commit is contained in:
rWatcher 2012-06-20 14:53:32 -04:00
parent 6972203109
commit d9a5079253

View File

@ -44,14 +44,15 @@ class rwinfo_theme_Core {
}
// 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) {
// 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>";
if ($str_owner_url) { //rW Edit str_owner_url
$results .= t("By: <a href=\"%owner_url\">%owner_name</a>",