Bug in wpmem_admin_update ?
-
Hello,
I’ve been using that plugin for a while and it proves to be very useful and reliable.
However, using an other plugin which imports in mass users with debug option enabled, for each imported user a “notice message” complaining that “Notice: Undefined index: user_id in G:\wamp\www\vja\wp-content\plugins\wp-members\admin\user-profile.php on line 207” is emitted.
This is just because the profile_update action is triggered and $_REQUEST[‘user_id’] is not set.
I’ve fixed this adding the following instruction at the beginning of the function wpmem_admin_updateif (!array_key_exists('user_id', $_REQUEST)) return;
Is it safe to do like this, if yes could you make the patch in a next version of the plugin?
Thank you by advance.
- The topic ‘Bug in wpmem_admin_update ?’ is closed to new replies.