summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-07-23 03:23:52 +0000
committerScott Dale <sdale@pfsense.org>2007-07-23 03:23:52 +0000
commitaa4ab704c39ff2d18efe6dd98f1fa02e210ef2c7 (patch)
treebb56758b0f0e38ff234a830f32cb6b58964a6026 /usr
parent981f03e5a9d51174667732340135fd7d1d71ebe9 (diff)
downloadpfsense-aa4ab704c39ff2d18efe6dd98f1fa02e210ef2c7.zip
pfsense-aa4ab704c39ff2d18efe6dd98f1fa02e210ef2c7.tar.gz
only process update java when update available
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/widgets/widgets/installed_packages.widget.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/installed_packages.widget.php b/usr/local/www/widgets/widgets/installed_packages.widget.php
index 5a52ab1..00d5de3 100644
--- a/usr/local/www/widgets/widgets/installed_packages.widget.php
+++ b/usr/local/www/widgets/widgets/installed_packages.widget.php
@@ -37,6 +37,8 @@ if(is_array($config['installedpackages']['package'])) {
}
$currentvers = get_pkg_info($tocheck, array('version', 'xmlver'));
}
+
+$updateavailable = false;
?>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
@@ -80,6 +82,7 @@ if(is_array($config['installedpackages']['package'])) {
elseif(strcmp($pkg['version'], $latest_package) < 0)
{
/* our package is out of date */
+ $updateavailable = true;
?>
<div id="updatediv-<?php echo $y; ?>" style="color:red">
<b>Update Available!</b></div><div style="float:left">
@@ -104,7 +107,7 @@ if(is_array($config['installedpackages']['package'])) {
?>
</table>
-
+<?php if ($updateavailable): ?>
<script language="javascript" type="text/javascript">
window.onload = function(in_event)
{
@@ -114,4 +117,4 @@ if(is_array($config['installedpackages']['package'])) {
}
}
</script>
- \ No newline at end of file
+<?php endif; ?> \ No newline at end of file
OpenPOWER on IntegriCloud