From a4dc1aed3b6b2b1abf82382076b253c7fd1fd839 Mon Sep 17 00:00:00 2001 From: Nigel McNie Date: Mon, 14 Jan 2008 10:23:28 +1300 Subject: [PATCH] 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. --- htdocs/lib/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/user.php b/htdocs/lib/user.php index f84d9c46..0e549b50 100644 --- a/htdocs/lib/user.php +++ b/htdocs/lib/user.php @@ -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'); -- GitLab