From 398d4ca225a21d7e26f209727f718c22df8249c7 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 21 Apr 2014 14:41:18 -0500 Subject: [PATCH] oops: __onload is not called for new ORM objects --- include/class.user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class.user.php b/include/class.user.php index 6145e09e0..92b78838f 100644 --- a/include/class.user.php +++ b/include/class.user.php @@ -594,7 +594,8 @@ class UserAccountModel extends VerySimpleModel { var $_status; - function __onload() { + function __construct() { + call_user_func_array(array('parent', '__construct'), func_get_args()); $this->_status = new UserAccountStatus($this->get('status')); } -- GitLab