update_user didn't return true
darcs-hash:20080619145838-5ed1f-c9c98e0df682a6ad4f1ec3028a985ff49b7c3e12.gz
This commit is contained in:
		@@ -218,7 +218,7 @@ function oid_update_user(&$user, &$sreg) {
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	if (!$profile->update($orig_profile)) {
 | 
						if (!$profile->update($orig_profile)) {
 | 
				
			||||||
		common_server_error(_t('Error saving the profile.'));
 | 
							common_server_error(_t('Error saving the profile.'));
 | 
				
			||||||
		return;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	$orig_user = clone($user);
 | 
						$orig_user = clone($user);
 | 
				
			||||||
@@ -229,6 +229,8 @@ function oid_update_user(&$user, &$sreg) {
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	if (!$user->update($orig_user)) {
 | 
						if (!$user->update($orig_user)) {
 | 
				
			||||||
		common_server_error(_t('Error saving the user.'));
 | 
							common_server_error(_t('Error saving the user.'));
 | 
				
			||||||
		return;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user