From 160bdb3553a5e4531f29f170497ae6fa24681406 Mon Sep 17 00:00:00 2001 From: Stijn Raeymaekers Date: Thu, 24 Jan 2013 11:08:34 +0100 Subject: [PATCH] Replaced invalid operator Caused all images and some other pages to get the following error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM --- ext/user/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/user/main.php b/ext/user/main.php index f13ef232..b899b259 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -372,7 +372,7 @@ class UserPage extends Extension { "INSERT INTO users (name, pass, joindate, email, class) VALUES (:username, :hash, now(), :email, :class)", array("username"=>$event->username, "hash"=>$hash, "email"=>$email, "class"=>$class)); $uid = $database->get_last_insert_id('users_id_seq'); - $user = $user::by_name($event->username); + $user = $user->by_name($event->username); log_info("user", "Created User #$uid ({$event->username})"); }