Fixed a couple bugs in the check-for-updates code.
--- 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;
}