diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-08 02:42:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-08 02:42:02 +0000 |
commit | ac24076d0395ac76c7e3cdd568fda304b26f8d47 (patch) | |
tree | 5838554c3ec5d4293082d86bf846407219129898 /packages | |
parent | d3fc579054c0e6de320b703aa39a2c6df5a2c613 (diff) | |
download | pfsense-packages-ac24076d0395ac76c7e3cdd568fda304b26f8d47.tar.gz pfsense-packages-ac24076d0395ac76c7e3cdd568fda304b26f8d47.tar.bz2 pfsense-packages-ac24076d0395ac76c7e3cdd568fda304b26f8d47.zip |
Do not show install this revision box if an error occurs
Diffstat (limited to 'packages')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 5fb28114..efa063ae 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -271,7 +271,8 @@ EOF; echo "<h2>Decrypted config.xml</h2>"; echo "<textarea name='dec_config_xml' rows='40' cols='70'>{$data}</textarea>"; } - echo "<p/><input type=\"button\" value=\"Install this revision\" onClick=\"document.location='autoconfigbackup.php?newver=" . urlencode($_REQUEST['download']) . "';\">"; + if(!$input_errors) + echo "<p/><input type=\"button\" value=\"Install this revision\" onClick=\"document.location='autoconfigbackup.php?newver=" . urlencode($_REQUEST['download']) . "';\">"; echo "<script type=\"text/javascript\">"; echo "$('loading').innerHTML = '';"; echo "</script>"; |