Index: /branches/release-36/php/lib/mtdb_base.php
===================================================================
--- /branches/release-36/php/lib/mtdb_base.php (revision 2104)
+++ /branches/release-36/php/lib/mtdb_base.php (revision 2129)
@@ -449,5 +449,5 @@
     }
 
-    function &fetch_entries($args, &$total_count = NULL) {
+    function &fetch_entries($args, $total_count = NULL) {
         if ($sql = $this->include_exclude_blogs($args)) {
             $blog_filter = 'and entry_blog_id ' . $sql;
Index: /branches/release-36/php/lib/block.mtentries.php
===================================================================
--- /branches/release-36/php/lib/block.mtentries.php (revision 2103)
+++ /branches/release-36/php/lib/block.mtentries.php (revision 2129)
@@ -101,5 +101,5 @@
         if ( isset($args['offset']) && ($args['offset'] == 'auto') )
             $total_count = 0;
-        $entries =& $ctx->mt->db->fetch_entries($args, $total_count);
+        $entries =& $ctx->mt->db->fetch_entries($args, &$total_count);
         if ( isset($args['offset']) && ($args['offset'] == 'auto') )
             $ctx->stash('__pager_total_count', $total_count);
