dns/ddclient - fix "Implicit conversion from float " in model

This commit is contained in:
Ad Schellevis
2023-01-29 11:57:34 +01:00
parent 03221109fe
commit e47b0d964d
@@ -50,7 +50,7 @@ class AccountField extends ArrayField
if (isset(self::$current_stats[$node->getAttribute('uuid')])) {
$stats = self::$current_stats[$node->getAttribute('uuid')];
$current_ip->setValue($stats['ip']);
$current_mtime->setValue(date('c', $stats['mtime']));
$current_mtime->setValue(date('c', (int)$stats['mtime']));
} elseif (!empty((string)$node->hostnames)) {
foreach (explode(",", (string)$node->hostnames) as $hostname) {
if (!empty(self::$current_stats[$hostname]) && !empty(self::$current_stats[$hostname]['ip'])) {