diff --git a/includes/pager.inc b/includes/pager.inc
index c060d0e7..17c042d6 100644
--- a/includes/pager.inc
+++ b/includes/pager.inc
@@ -321,7 +321,7 @@ function theme_pager($variables) {
   $tags = $variables['tags'];
   $element = $variables['element'];
   $parameters = $variables['parameters'];
-  $quantity = $variables['quantity'];
+  $quantity = empty($variables['quantity']) ? 0 : $variables['quantity'];
   global $pager_page_array, $pager_total;
 
   // Calculate various markers within this pager piece:
