summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-06-23 22:40:50 +0000
committerColin Smith <colin@pfsense.org>2005-06-23 22:40:50 +0000
commite57757c5e43b2317c727534fa3cf7f7a1057ddaa (patch)
tree5fd377abd8010651d15ff2788ace83bdca4ab0d2
parent52893419f20976a47685752c0c25f0e1040edeaf (diff)
downloadpfsense-e57757c5e43b2317c727534fa3cf7f7a1057ddaa.zip
pfsense-e57757c5e43b2317c727534fa3cf7f7a1057ddaa.tar.gz
Don't offer to restore all packages if none are installed.
-rwxr-xr-xusr/local/www/diag_backup.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 3325ef4..2ca43c6 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -233,9 +233,10 @@ $dir = ini_get('upload_progress_meter.file.filename_template');
The firewall will reboot after restoring the configuration.<br>
</td>
</tr>
+ <?php if($config['installedpackages']['package'] != "") { ?>
<tr>
- <td colspan="2">&nbsp;</td>
- </tr>
+ <td colspan="2" class="list" height="12"></td>
+ </tr>
<tr>
<td colspan="2" class="listtopic">Reinstall packages</td>
</tr>
@@ -246,6 +247,7 @@ $dir = ini_get('upload_progress_meter.file.filename_template');
<br>
<input name="Submit" type="submit" class="formbtn" id="reinstallpackages" value="Reinstall packages"></td>
</tr>
+ <?php } ?>
</table>
</td>
</tr>
OpenPOWER on IntegriCloud