diff --git a/public_html/includes/class/class.LSldapObject.php b/public_html/includes/class/class.LSldapObject.php
index 1d223fdf..c9b15f6c 100644
--- a/public_html/includes/class/class.LSldapObject.php
+++ b/public_html/includes/class/class.LSldapObject.php
@@ -1948,7 +1948,7 @@ class LSldapObject {
**/
function __get($key) {
if ($key=='subDnValue') {
- if ($this -> cache['subDnValue']) {
+ if (isset($this -> cache['subDnValue'])) {
return $this -> cache['subDnValue'];
}
$this -> cache['subDnValue'] = self :: getSubDnValue($this -> dn);