aboutsummaryrefslogtreecommitdiffstats
path: root/config/systempatches
diff options
context:
space:
mode:
Diffstat (limited to 'config/systempatches')
-rw-r--r--config/systempatches/system_patches.php2
-rw-r--r--config/systempatches/system_patches_edit.php4
2 files changed, 3 insertions, 3 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>
diff --git a/config/systempatches/system_patches_edit.php b/config/systempatches/system_patches_edit.php
index 32318620..a4038b05 100644
--- a/config/systempatches/system_patches_edit.php
+++ b/config/systempatches/system_patches_edit.php
@@ -75,8 +75,8 @@ if ($_POST) {
/* input validation */
if(empty($_POST['location'])) {
- $reqdfields = explode(" ", " patch");
- $reqdfieldsn = array(gettext("Description"),gettext("Patch Contents"));
+ $reqdfields = explode(" ", "patch");
+ $reqdfieldsn = array(gettext("Patch Contents"));
} else {
$reqdfields = explode(" ", "descr location");
$reqdfieldsn = array(gettext("Description"),gettext("URL/Commit ID"));