Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

个人资料的扩展用户组计算问题,导致多于1个显示为空

[复制链接]
iCAx 发表于 2014-1-10 13:41:52 | 显示全部楼层 |阅读模式
文件source/include/space/space_profile.php,第38行代码 $e_ids 的计算问题
  1. if($space['extgroupids']) {
  2.         $newgroup = array();
  3.         $e_ids = explode(',', $space['extgroupids']);
  4.         foreach ($e_ids as $e_id) {
  5.                 $newgroup[] = $_G['cache']['usergroups'][$e_id]['grouptitle'];
  6.         }
  7.         $space['extgroupids'] = implode(',', $newgroup);
  8. }
复制代码

应为

  1. if($space['extgroupids']) {
  2.         $newgroup = array();
  3.         $e_ids = explode("\t", $space['extgroupids']);
  4.         foreach ($e_ids as $e_id) {
  5.                 $newgroup[] = $_G['cache']['usergroups'][$e_id]['grouptitle'];
  6.         }
  7.         $space['extgroupids'] = implode(',', $newgroup);
  8. }
复制代码



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-3-10 22:01 , Processed in 0.020865 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表