From 0a25bc14fc5dba89500e56fb32295ee1889f9cf6 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Wed, 2 Oct 2013 23:25:44 +0300 Subject: [PATCH] fix user form --- ipf/auth/models/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipf/auth/models/User.php b/ipf/auth/models/User.php index 93524c0..18237ff 100644 --- a/ipf/auth/models/User.php +++ b/ipf/auth/models/User.php @@ -307,6 +307,9 @@ class User extends BaseUser public function getProfile() { + if (!$this->id) + return null; + $profileTable = IPF::get('auth_profile_model'); if (!$profileTable) return null; -- 2.49.0