delete limit for news feed
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user