Show all packages if search box is empty
authorJamie Cameron <jcameron@webmin.com>
Tue, 13 Jan 2009 00:45:05 +0000 (00:45 +0000)
committerJamie Cameron <jcameron@webmin.com>
Tue, 13 Jan 2009 00:45:05 +0000 (00:45 +0000)
software/find.cgi
software/images/smallicon.gif

index 5f6d876..56ca77c 100755 (executable)
@@ -25,8 +25,12 @@ print &ui_form_end();
 
 # Show results, if any
 $search = $in{'search'};
-if ($search) {
-       if (defined(&update_system_search)) {
+if (defined($search)) {
+       if (!$search) {
+               # List them all
+               @avail = &update_system_available();
+               }
+       elsif (defined(&update_system_search)) {
                # Call the search function
                @avail = &update_system_search($search);
                }
index e69de29..a158885 100644 (file)
Binary files a/software/images/smallicon.gif and b/software/images/smallicon.gif differ