From 6ef631c5bc372234b8718f6b9f931e87c0569634 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 17 Oct 2006 10:38:56 +0000 Subject: [PATCH] Pass by reference, allow AutoAuthenticate to create a new object and assign it to $user. --- includes/StubObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/StubObject.php b/includes/StubObject.php index 9d21931156..87316700df 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -120,7 +120,7 @@ class StubUser extends StubObject { $user = new User; } else { $user = User::newFromSession(); - wfRunHooks('AutoAuthenticate',array($user)); + wfRunHooks('AutoAuthenticate',array(&$user)); } return $user; } -- 2.20.1