mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/ddclient - validate statistics before usage to prevent missing fields [2], typo in previous fix. closes https://github.com/opnsense/plugins/issues/3019
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ class AccountField extends ArrayField
|
||||
|
||||
if (!empty((string)$node->hostnames)) {
|
||||
foreach (explode(",", (string)$node->hostnames) as $hostname) {
|
||||
if (!empty((self::$current_stats[$hostname]) && !empty(self::$current_stats[$hostname]['ip']))) {
|
||||
if (!empty(self::$current_stats[$hostname]) && !empty(self::$current_stats[$hostname]['ip'])) {
|
||||
$stats = self::$current_stats[$hostname];
|
||||
$current_ip->setValue($stats['ip']);
|
||||
$current_mtime->setValue(date('c', $stats['mtime']));
|
||||
|
||||
Reference in New Issue
Block a user