Don't limit session list - refs #7768

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent a3073bddf3
commit d4c1b86acb
  1. 16
      main/inc/lib/auth.lib.php

@ -654,12 +654,16 @@ class Auth
$qb = $em->createQueryBuilder();
$_sessions = $qb->select('s')
->from('ChamiloCoreBundle:Session', 's')
->setFirstResult($limit['start'])
->setMaxResults($limit['length'])
->where(
$qb->expr()->gt('s.nbrCourses', 0)
);
->from('ChamiloCoreBundle:Session', 's');
if (!empty($limit)) {
$_sessions->setFirstResult($limit['start'])
->setMaxResults($limit['length']);
}
$_sessions->where(
$qb->expr()->gt('s.nbrCourses', 0)
);
if (!is_null($date)) {
$_sessions

Loading…
Cancel
Save