diff --git a/public_html/includes/class/class.LSattr_ldap_date.php b/public_html/includes/class/class.LSattr_ldap_date.php
index 4e9f5c8c..967f67d4 100644
--- a/public_html/includes/class/class.LSattr_ldap_date.php
+++ b/public_html/includes/class/class.LSattr_ldap_date.php
@@ -43,7 +43,7 @@ class LSattr_ldap_date extends LSattr_ldap {
$retval=array();
foreach($data as $val) {
$datetime = date_create_from_format($this -> getFormat(), $val);
- if (is_a($datetime, DateTime)) {
+ if ($datetime instanceof DateTime) {
$retval[] = $datetime -> format('U');
}
}