Fixed RSSFeeds bug for php 5.3, fixed Aggregate->getEntries() called without any feed

This commit is contained in:
Andrey
2013-06-17 14:01:03 +02:00
parent 3f8855f5cb
commit 6bdfa2da29
6 changed files with 40 additions and 45 deletions

View File

@@ -43,7 +43,7 @@ class UserSettingRepository extends EntityRepository
$query = $this->_em->createQuery($dql);
$query->setParameter('feeds', $feeds);
if (null !== $offset_start) {
if (null !== $offset_start && 0 !== $offset_start) {
$query->setFirstResult($offset_start);
}
if (null !== $how_many) {