A: 1、打开UCHome目录下的 ./uc_client/control/feed.php
if($feedlist) {
foreach($feedlist as $key => $feed) {
$feed['body_data'] = $_ENV['misc']->string2array($feed['body_data']);
$feed['title_data'] = $_ENV['misc']->string2array($feed['title_data']);
$feedlist[$key] = $feed;
}
}
if(!empty($feedlist)) {
$maxfeed = array_pop($feedlist);
$maxfeedid = $maxfeed['feedid'];
$feedlist = array_merge($feedlist, array($maxfeed));
if($delete) {
$this->_delete(0, $maxfeedid);
}
}
这一段,替换为
if($feedlist) {
$maxfeedid = $feedlist[0]['feedid'];
foreach($feedlist as $key => $feed) {
$feed['body_data'] = $_ENV['misc']->string2array($feed['body_data']);
$feed['title_data'] = $_ENV['misc']->string2array($feed['title_data']);
$feedlist[$key] = $feed;
}
}
if(!empty($feedlist)) {
if(!isset($delete) || $delete) {
$this->_delete(0, $maxfeedid);
}
}
2、打开 UCenter 目录下的 ./control/feed.php
找到
if($feedlist) {
foreach($feedlist as $key => $feed) {
$feed['body_data'] = $_ENV['misc']->string2array($feed['body_data']);
$feed['title_data'] = $_ENV['misc']->string2array($feed['title_data']);
$feedlist[$key] = $feed;
}
}
if(!empty($feedlist)) {
$maxfeed = array_pop($feedlist);
$maxfeedid = $maxfeed['feedid'];
$feedlist = array_merge($feedlist, array($maxfeed));
if(!isset($delete) || $delete) {
$this->_delete(0, $maxfeedid);
}
}
之后保存
替换为
if($feedlist) {
$maxfeedid = $feedlist[0]['feedid'];
foreach($feedlist as $key => $feed) {
$feed['body_data'] = $_ENV['misc']->string2array($feed['body_data']);
$feed['title_data'] = $_ENV['misc']->string2array($feed['title_data']);
$feedlist[$key] = $feed;
}
}
if(!empty($feedlist)) {
if(!isset($delete) || $delete) {
$this->_delete(0, $maxfeedid);
}
}
之后保存
没有评论:
发表评论