Index: /branches/release-41/php/lib/function.mtentriescount.php
===================================================================
--- /branches/release-41/php/lib/function.mtentriescount.php (revision 1956)
+++ /branches/release-41/php/lib/function.mtentriescount.php (revision 2655)
@@ -13,5 +13,5 @@
     } else {
         $entries = $ctx->stash('entries');
-        if (!is_array($entries)){
+        if (empty($entries) || !is_array($entries)){
             $blog = $ctx->stash('blog');
             $args['blog_id'] = $blog['blog_id'];
