Changeset 21606 for extensions/UserAdvManager/trunk
- Timestamp:
- Mar 16, 2013, 5:43:15 PM (11 years ago)
- Location:
- extensions/UserAdvManager/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/changelog.txt.php
r21598 r21606 400 400 401 401 -- 2.50.3 : Bug 2870 fixed - Error in tracking confirmation tab if $conf['default_user_id'] is set with an ID different than Guest user ID 402 Bug 2871 fixed - Improved process : User registration is confirmed by default when user is added by an admin and confirmation of registration for admins is set to OFF 402 403 */ 403 404 ?> -
extensions/UserAdvManager/trunk/include/functions.inc.php
r21598 r21606 2303 2303 2304 2304 // Set UAM_validated field to True in #_users table 2305 $query = ' 2306 UPDATE '.USERS_TABLE.' 2307 SET UAM_validated = "true" 2308 WHERE id = '.$data['user_id'].' 2309 ;'; 2310 pwg_query($query); 2305 SetValidated($data['user_id']); 2311 2306 2312 2307 // Refresh user's category cache … … 2395 2390 2396 2391 // Set UAM_validated field to True in #_users table 2397 $query = ' 2398 UPDATE '.USERS_TABLE.' 2399 SET UAM_validated = "true" 2400 WHERE id = '.$data['user_id'].' 2401 ;'; 2402 pwg_query($query); 2392 SetValidated($data['user_id']); 2403 2393 2404 2394 // Refresh user's category cache … … 2493 2483 2494 2484 // Set UAM_validated field to True in #_users table 2495 $query = ' 2496 UPDATE '.USERS_TABLE.' 2497 SET UAM_validated = "true" 2498 WHERE id = '.$id.' 2499 ;'; 2500 pwg_query($query); 2485 SetValidated($data['user_id']); 2501 2486 } 2502 2487 … … 3091 3076 $result = pwg_db_fetch_assoc(pwg_query($query)); 3092 3077 3093 if($result['UAM_validated'] == 'true' )3078 if($result['UAM_validated'] == 'true' or is_null($result['UAM_validated'])) 3094 3079 { 3095 3080 return true; … … 3109 3094 UPDATE '.USERS_TABLE.' 3110 3095 SET UAM_validated = "false" 3096 WHERE id = '.$user_id.' 3097 LIMIT 1 3098 ;'; 3099 3100 pwg_query($query); 3101 } 3102 3103 3104 /** 3105 * SetValidated 3106 * Set UAM_validated field to true in #_users table 3107 * 3108 **/ 3109 function SetValidated($user_id) 3110 { 3111 $query =' 3112 UPDATE '.USERS_TABLE.' 3113 SET UAM_validated = "true" 3111 3114 WHERE id = '.$user_id.' 3112 3115 LIMIT 1
Note: See TracChangeset
for help on using the changeset viewer.