aboutsummaryrefslogtreecommitdiffstats
path: root/config/systempatches/system_patches.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-09 10:18:22 -0400
committerjim-p <jimp@pfsense.org>2012-05-09 10:31:19 -0400
commitca6a8106bf3092480a6036ac351aaa6e34931d07 (patch)
treea9a0c28a48ecc3e4978731233fdd530d2b2f6aae /config/systempatches/system_patches.php
parenta3e7ed6ffea8d2e833228bb53f1da90ddc09fc24 (diff)
downloadpfsense-packages-ca6a8106bf3092480a6036ac351aaa6e34931d07.tar.gz
pfsense-packages-ca6a8106bf3092480a6036ac351aaa6e34931d07.tar.bz2
pfsense-packages-ca6a8106bf3092480a6036ac351aaa6e34931d07.zip
Fix validation for pasting in a patch alone, make sure not to offer re-fetch if location is blank. version bump.
Diffstat (limited to 'config/systempatches/system_patches.php')
-rw-r--r--config/systempatches/system_patches.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/systempatches/system_patches.php b/config/systempatches/system_patches.php
index a10cb0bc..2cb6abf9 100644
--- a/config/systempatches/system_patches.php
+++ b/config/systempatches/system_patches.php
@@ -221,7 +221,7 @@ foreach ($a_patches as $thispatch):
<td class="listr" onClick="fr_toggle(<?=$npatches;?>)" id="frd<?=$npatches;?>" ondblclick="document.location='system_patches_edit.php?id=<?=$npatches;?>';">
<?php if (empty($thispatch['patch'])): ?>
<a href="system_patches.php?id=<?=$i;?>&act=fetch"><?php echo gettext("Fetch"); ?></a>
- <?php else: ?>
+ <?php elseif (!empty($thispatch['location'])): ?>
<a href="system_patches.php?id=<?=$i;?>&act=fetch"><?php echo gettext("Re-Fetch"); ?></a>
<?php endif; ?>
</td>