diff --git a/include/staff/templates/thread-entries.tmpl.php b/include/staff/templates/thread-entries.tmpl.php index a43e45ba274599914153f51563cda292f409437e..7e5e1638824a5491a1ec11d1cdf8b51299b853c0 100644 --- a/include/staff/templates/thread-entries.tmpl.php +++ b/include/staff/templates/thread-entries.tmpl.php @@ -8,7 +8,7 @@ $htmlId = $options['html-id'] ?: ('thread-'.$this->getId()); <div id="<?php echo $htmlId; ?>"> <div id="thread-items" data-thread-id="<?php echo $this->getId(); ?>"> <?php - if (count($entries)) { + if ($entries->exists(true)) { // Go through all the entries and bucket them by time frame $buckets = array(); $rel = 0;