diff --git a/inc/Principal.php b/inc/Principal.php index f23bac0d..7ad76d7e 100644 --- a/inc/Principal.php +++ b/inc/Principal.php @@ -234,7 +234,10 @@ class Principal { } $this->assignRowValues($row); $this->url = ConstructURL( $this->dav_name, true ); - $row = $cache->set($this->cacheNs, $this->cacheKey, $row, 864000 ); + + if (isset($this->cacheNs)) + $cache->set($this->cacheNs, $this->cacheKey, $row, 864000 ); + return $this; }