summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/feed-browser/index.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/feed-browser/index.php b/contrib/feed-browser/index.php
index e513c731cd..eca57e9269 100644
--- a/contrib/feed-browser/index.php
+++ b/contrib/feed-browser/index.php
@@ -76,15 +76,21 @@ $archs_list = get_arch_list();
<form action="" method="get">
<fieldset>
<label for="name">Package name</label>
- <input type="text" name="pkgsearch" value="<?php echo $name; ?>" />
+ <input type="text" name="pkgsearch" value="<?php echo $pkgsearch; ?>" />
<select name="arch">
<option value="" selected="selected">all architectures</option>
<option value="all">no arch</option>
<?php
-foreach($archs_list as $arch)
+foreach($archs_list as $architecture)
{
- echo "<option value='{$arch['p_arch']}'>{$arch['p_arch']}</option>";
+ echo "<option value='{$architecture['p_arch']}'";
+
+ if($architecture['p_arch'] == $arch)
+ {
+ echo ' selected="selected"';
+ }
+ echo ">{$architecture['p_arch']}</option>";
}
?>