From 8ebf473a30dd2df3733884ad0b1340a08f3e07c2 Mon Sep 17 00:00:00 2001 From: franzz Date: Sun, 13 Jul 2014 19:06:47 +0200 Subject: [PATCH] delete limit for news feed --- inc/databap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/databap.php b/inc/databap.php index 8469a6f..e31af3b 100644 --- a/inc/databap.php +++ b/inc/databap.php @@ -1870,7 +1870,7 @@ class Databap extends PhpObject $asInfo['from'] = self::MSG_TABLE; $asInfo['constraint'] = array('type'=>self::MESSAGE_NEWS); $asInfo['orderBy'] = array('led'=>'DESC'); - $asInfo['limit'] = 3; + if($bExport) $asInfo['limit'] = 3; $asNews = $this->oMySql->selectRows($asInfo); //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]; $asNews2[] = $asNews[$iKey]; - if(count($asNews2)==self::MAX_NB_NEWS) break; + if($bExport && count($asNews2)==self::MAX_NB_NEWS) break; } $asFormatNews = array();