plugins/SpecialUserPrefs.php
changeset 1241 99b749da5149
parent 1235 25e13d35cd76
child 1242 9aa09b0a7544
equal deleted inserted replaced
1240:2b6cdff92b09 1241:99b749da5149
  1155 			$q = $db->sql_query('UPDATE ' . table_prefix . 'users SET user_has_avatar = 1, avatar_type = \'grv\' WHERE user_id = ' . $user_id . ';');
  1155 			$q = $db->sql_query('UPDATE ' . table_prefix . 'users SET user_has_avatar = 1, avatar_type = \'grv\' WHERE user_id = ' . $user_id . ';');
  1156 			if ( !$q )
  1156 			if ( !$q )
  1157 				$db->_die('Avatar CP switching user avatar off');
  1157 				$db->_die('Avatar CP switching user avatar off');
  1158 				
  1158 				
  1159 			$has_avi = 1;
  1159 			$has_avi = 1;
       
  1160 			$avi_type = 'grv';
  1160 			$quiet || print '<div class="info-box">' . $lang->get('usercp_avatar_gravatar_success') . '</div>';
  1161 			$quiet || print '<div class="info-box">' . $lang->get('usercp_avatar_gravatar_success') . '</div>';
  1161 			$had_a_boo_boo = false;
  1162 			$had_a_boo_boo = false;
  1162 			break;
  1163 			break;
  1163 	}
  1164 	}
  1164 	return array($has_avi, $avi_type, $had_a_boo_boo);
  1165 	return array($has_avi, $avi_type, $had_a_boo_boo);