Permalink
Browse files

Rearrange dyndnsCheckIP() call

  • Loading branch information...
1 parent 30b32e7 commit ac1ff8bcde5054c6e29aed4f322006480aad8c5c @bcyrill committed Feb 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 usr/local/www/services_dyndns.php
@@ -1,7 +1,7 @@
<?php
/* $Id$ */
/*
- Copyright (C) 2008 Ermal Luçi
+ Copyright (C) 2008 Ermal Lu�i
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -166,8 +166,8 @@ function dyndnsCheckIP($int) {
<td class="listr">
<?php
$filename = "{$g['conf_path']}/dyndns_{$iface}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . "{$dyndns['id']}.cache";
- $ipaddr = dyndnsCheckIP($iface);
if (file_exists($filename)) {
+ $ipaddr = dyndnsCheckIP($iface);
$cached_ip_s = explode(":", file_get_contents($filename));
$cached_ip = $cached_ip_s[0];
if ($ipaddr <> $cached_ip)

0 comments on commit ac1ff8b

Please sign in to comment.