MFB: We only show name columns if no columns have been specified in the prefs. So...
authorJan Schneider <jan@horde.org>
Mon, 16 Aug 2010 22:08:44 +0000 (00:08 +0200)
committerJan Schneider <jan@horde.org>
Mon, 16 Aug 2010 22:08:44 +0000 (00:08 +0200)
turba/lib/View/Browse.php

index 6c71b5e..ff645d4 100644 (file)
@@ -385,7 +385,7 @@ class Turba_View_Browse {
                         $type_filter = array('__type' => 'Group');
                         break;
                     }
-                    $results = $driver->search($type_filter, $sortorder, 'AND', $columns);
+                    $results = $driver->search($type_filter, $sortorder, 'AND', $columns ? $columns : array('name'));
                     if (!is_object($results)) {
                         $notification->push(_("Failed to browse the directory"), 'horde.error');
                     } elseif (is_a($results, 'PEAR_Error')) {