]> git.andy128k.dev Git - ipf.git/commitdiff
fix user form
authorAndrey Kutejko <andy128k@gmail.com>
Wed, 2 Oct 2013 20:25:44 +0000 (23:25 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Wed, 2 Oct 2013 20:25:44 +0000 (23:25 +0300)
ipf/auth/models/User.php

index 93524c0b720284b90a8f23636fc0390d0509e576..18237ff260b9b23aa4a7402382d612db860cdd04 100644 (file)
@@ -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;