Commit 29afdf8a authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Friendship request throws error (bug 1222350)



- throwing 'Creating default object from empty value' error
- need to declare stdClass first

Change-Id: Ia736475e49c88e9a74bfc1480def370cb65440f5
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent ac9e5527
......@@ -102,6 +102,7 @@ function requestfriendship_submit(Pieform $form, $values) {
$n->fromuser = $loggedinid;
$lang = get_user_language($user->id);
$displayname = display_name($USER, $user);
$n->strings = new stdClass;
$n->strings->urltext = (object) array('key' => 'Requests');
$f->owner = $id;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment