XOOPS Cube Legacy base repository
Revision | 978f5c02ec2b333302acf9eb5f07a2f07be02e49 (tree) |
---|---|
Zeit | 2011-11-24 19:39:39 |
Autor | kilica <kilica@704c...> |
Commiter | kilica |
- Fix Bug #3380517 - user module edit error
git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@1062 704cf05f-ae62-4b0e-a484-234ee0250e75
@@ -76,6 +76,14 @@ class Profile_DataHandler extends XoopsObjectGenericHandler | ||
76 | 76 | var $mPrimary = 'uid'; |
77 | 77 | var $mClass = 'Profile_DataObject'; |
78 | 78 | |
79 | + public function insert(&$obj, $force = false) | |
80 | + { | |
81 | + if(count($obj->mDef)===0){ | |
82 | + return true; | |
83 | + } | |
84 | + parent::insert(&$obj, $force = false); | |
85 | + } | |
86 | + | |
79 | 87 | } |
80 | 88 | |
81 | 89 | ?> |