delete limit for news feed

This commit is contained in:
2014-07-13 19:06:47 +02:00
parent dca32c02f1
commit 8ebf473a30

View File

@@ -1870,7 +1870,7 @@ class Databap extends PhpObject
$asInfo['from'] = self::MSG_TABLE; $asInfo['from'] = self::MSG_TABLE;
$asInfo['constraint'] = array('type'=>self::MESSAGE_NEWS); $asInfo['constraint'] = array('type'=>self::MESSAGE_NEWS);
$asInfo['orderBy'] = array('led'=>'DESC'); $asInfo['orderBy'] = array('led'=>'DESC');
$asInfo['limit'] = 3; if($bExport) $asInfo['limit'] = 3;
$asNews = $this->oMySql->selectRows($asInfo); $asNews = $this->oMySql->selectRows($asInfo);
//Status //Status
@@ -1887,7 +1887,7 @@ class Databap extends PhpObject
{ {
if($asNews[$iKey]['type']==self::MESSAGE_STATUS) $asNews[$iKey][$sMsgTxtCol] = $asNews[$iKey]['nickname'].' '.$asNews[$iKey][$sMsgTxtCol]; if($asNews[$iKey]['type']==self::MESSAGE_STATUS) $asNews[$iKey][$sMsgTxtCol] = $asNews[$iKey]['nickname'].' '.$asNews[$iKey][$sMsgTxtCol];
$asNews2[] = $asNews[$iKey]; $asNews2[] = $asNews[$iKey];
if(count($asNews2)==self::MAX_NB_NEWS) break; if($bExport && count($asNews2)==self::MAX_NB_NEWS) break;
} }
$asFormatNews = array(); $asFormatNews = array();