argh
argh


Former-commit-id: 5633b69c577c7553ef393e89754b6647eedbf014

--- a/couchdb/settee/src/classes/SetteeDatabase.class.php
+++ b/couchdb/settee/src/classes/SetteeDatabase.class.php
@@ -251,7 +251,7 @@
    * 
    * @return void
    */
-  function get_view($design_doc, $view_name, $key = null, $descending = false, $limit = false, $reduce=false) {
+  function get_view($design_doc, $view_name, $key = null, $descending = false, $limit = false, $reduce=null) {
     $id = "_design/" . urlencode($design_doc);
     $view_name = urlencode($view_name);
     $id .= "/_view/$view_name";
@@ -269,10 +269,12 @@
       if ($descending) {
         $data .= "&descending=true";
       }
-      if ($reduce) {
+      if ($reduce != null) {
+      if ($reduce == true) {
         $data .= "&reduce=true";
       } else {
           $data .= "&reduce=false";
+      }
       }
       if ($limit) {
           $data .= "&limit=".$limit;