From: Jan Schneider Date: Mon, 16 Aug 2010 22:08:44 +0000 (+0200) Subject: MFB: We only show name columns if no columns have been specified in the prefs. So... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ae33051ab7a1212e0dadbec4d67c75b29067f4be;p=horde.git MFB: We only show name columns if no columns have been specified in the prefs. So only retrieve the name column. --- diff --git a/turba/lib/View/Browse.php b/turba/lib/View/Browse.php index 6c71b5ead..ff645d489 100644 --- a/turba/lib/View/Browse.php +++ b/turba/lib/View/Browse.php @@ -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')) {