From a56a304c19ed1a44ffc45abdc8a1e5aca66986f7 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 8 Dec 2006 04:34:39 +0000 Subject: [PATCH] Get rid of a warning --- campcaster/src/modules/htmlUI/var/ui_browse.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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;