diff --git a/campcaster/src/modules/htmlUI/var/ui_browse.class.php b/campcaster/src/modules/htmlUI/var/ui_browse.class.php
index 95922e933..5c4c083c9 100644
--- a/campcaster/src/modules/htmlUI/var/ui_browse.class.php
+++ b/campcaster/src/modules/htmlUI/var/ui_browse.class.php
@@ -160,9 +160,10 @@ class uiBrowse
$columnNumber = $parm['col'];
$next = $columnNumber + 1;
$this->col[$columnNumber]['form_value'] = $parm['value'][0];
+ $tmpFiletype = isset($this->criteria['filetype'])?$this->criteria['filetype']:UI_FILETYPE_ANY;
if ($parm['value'][0] == '%%all%%') {
$this->col[$next]['criteria'] = array('operator' => 'and',
- 'filetype' => $this->criteria['filetype']);
+ 'filetype' => $tmpFiletype);
} else {
$conditions = array(
array('cat' => uiBase::formElementDecode($parm['category']),
@@ -183,10 +184,6 @@ class uiBrowse
$category = isset($this->col[$next]['category']) ? $this->col[$next]['category'] : null;
$this->col[$next]['values'] = $this->Base->gb->browseCategory($category, $nextCriteria, $this->Base->sessid);
-// echo "cat: ".$this->col[$next]['category']."\n";
-// echo "criteria: "; print_r($this->col[$next]['criteria']);
-// echo "\nvalues: "; print_r($this->col[$next]['values']);
-
$this->setCriteria();
$this->clearHierarchy($next);
$this->Base->redirUrl = UI_BROWSER.'?act='.$this->prefix;