From 3b5272cf711708fb3d17a03aa9478cb86e067f2b Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Thu, 11 Mar 2010 08:28:40 +0100 Subject: [PATCH] A quick fix to avoid asking for shares if login failed. --- framework/Share/Share/kolab.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/Share/Share/kolab.php b/framework/Share/Share/kolab.php index bae3d07e8..05604f0c7 100644 --- a/framework/Share/Share/kolab.php +++ b/framework/Share/Share/kolab.php @@ -221,7 +221,9 @@ class Horde_Share_kolab extends Horde_Share { $sort_by = null, $direction = 0) { $key = serialize(array($this->_type, $userid, $perm, $attributes)); - if (empty($this->_listCache[$key]) + if ($this->_list === false) { + $this->_listCache[$key] = array(); + } else if (empty($this->_listCache[$key]) || $this->_list->validity != $this->_listCacheValidity) { $sharelist = $this->_list->getByType($this->_type); if (is_a($sharelist, 'PEAR_Error')) { -- 2.11.0