From: Andrey Kutejko Date: Wed, 2 Oct 2013 20:25:44 +0000 (+0300) Subject: fix user form X-Git-Tag: 0.5~23 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=0a25bc14fc5dba89500e56fb32295ee1889f9cf6;p=ipf.git fix user form --- 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;