From aa7c49b9d7628858f1510c184f8409f2eeeb08ad Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 3 Jan 2011 22:48:55 +0000 Subject: Ticket #943. Sleep 1 second to give dns time to reload. --- etc/inc/dyndns.class | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'etc/inc/dyndns.class') diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 785c902..da8844e 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -827,10 +827,7 @@ log_error("DynDns: Current WAN IP: {$wan_ip}"); if (file_exists($this->_cacheFile)) { - if(file_exists($this->_cacheFile)) - $contents = file_get_contents($this->_cacheFile); - else - $contents = ""; + $contents = file_get_contents($this->_cacheFile); list($cacheIP,$cacheTime) = split(':', $contents); $this->_debug($cacheIP.'/'.$cacheTime); $initial = false; @@ -933,4 +930,4 @@ } -?> \ No newline at end of file +?> -- cgit v1.1