Index: /branches/release-40/php/lib/mtdb_base.php
===================================================================
--- /branches/release-40/php/lib/mtdb_base.php (revision 2588)
+++ /branches/release-40/php/lib/mtdb_base.php (revision 2589)
@@ -493,15 +493,23 @@
             $args['lastn'] = $args['limit'];
         } elseif (!isset($args['days']) && !isset($args['lastn'])) {
-            if ($days = $blog['blog_days_on_index']) {
-                if (!isset($args['recently_commented_on'])) {
-                    $args['days'] = $days;
-                }
-            } elseif ($posts = $blog['blog_entries_on_index']) {
-                $args['lastn'] = $posts;
-            }
+#            if ($days = $blog['blog_days_on_index']) {
+#                if (!isset($args['recently_commented_on'])) {
+#                    $args['days'] = $days;
+#                }
+#            } elseif ($posts = $blog['blog_entries_on_index']) {
+#                $args['lastn'] = $posts;
+#            }
         }
         if ($args['limit'] == 'auto') {
             if (($_REQUEST['limit'] > 0) && ($_REQUEST['limit'] < $args['lastn'])) {
                 $args['lastn'] = intval($_REQUEST['limit']);
+            } elseif (!isset($args['days']) && !isset($args['lastn'])) {
+               if ($days = $blog['blog_days_on_index']) {
+                    if (!isset($args['recently_commented_on'])) {
+                        $args['days'] = $days;
+                    }
+                } elseif ($posts = $blog['blog_entries_on_index']) {
+                    $args['lastn'] = $posts;
+                }            
             }
         }
