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,6 +44,8 @@ class rwinfo_theme_Core {
|
||||
}
|
||||
// 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))) {
|
||||
@ -51,7 +53,6 @@ class rwinfo_theme_Core {
|
||||
}
|
||||
// rWatcher End Edit
|
||||
|
||||
if ($item->owner) {
|
||||
$results .= "<li>";
|
||||
if ($str_owner_url) { //rW Edit str_owner_url
|
||||
$results .= t("By: <a href=\"%owner_url\">%owner_name</a>",
|
||||
|
Reference in New Issue
Block a user