plugins/SpecialUserPrefs.php
changeset 1235 25e13d35cd76
parent 1227 bdac73ed481e
child 1242 9aa09b0a7544
equal deleted inserted replaced
1234:903bb153c265 1235:25e13d35cd76
  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);