Commit a4dc1aed authored by Nigel McNie's avatar Nigel McNie

friend_submit is sometimes called with 'null' for the form. With type hinting,...

friend_submit is sometimes called with 'null' for the form. With type hinting, this blows up in your face in php 5.1.

Removed the type hint.
parent da50bf46
......@@ -557,7 +557,7 @@ function suspend_user($suspendeduserid, $reason, $suspendinguserid=null) {
* handle the add/remove/approve/reject friend form
* @param array $values from pieforms.
*/
function friend_submit(Pieform $form, $values) {
function friend_submit($form, $values) {
global $user, $USER;
$loggedinid = $USER->get('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