Fixed a couple bugs in the check-for-updates code.
authorDan
Mon, 11 Aug 2008 21:35:26 -0400
changeset 683 fcc494e02baf
parent 682 9523cc7d767c
child 684 15dbbe7e7674
Fixed a couple bugs in the check-for-updates code.
plugins/SpecialAdmin.php
--- a/plugins/SpecialAdmin.php	Mon Aug 11 21:34:37 2008 -0400
+++ b/plugins/SpecialAdmin.php	Mon Aug 11 21:35:26 2008 -0400
@@ -118,11 +118,14 @@
 Received invalid XML response.
 ]]></error></latest></enano>';
       }
-      if ( version_compare(enano_version(true), $match[2], '<') )
+      else
       {
-        $response = str_replace_once('</latest>', "  <haveupdates />\n  </latest>", $response);
+        if ( version_compare(enano_version(true), $match[2], '<') )
+        {
+          $response = str_replace_once('</latest>', "  <haveupdates />\n  </latest>", $response);
+        }
+        echo $response;
       }
-      echo $response;
     }
     return;
   }