mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSattr_ldap :: date : replace is_a check by instanceof to avoid warning on PHP 7
This commit is contained in:
parent
ee74f4d644
commit
f3e332593e
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue