Don't limit session list - refs #7768

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

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

Loading…
Cancel
Save