From 67d82d1de6b89ac5f752bad1128fb3ac043e9bad Mon Sep 17 00:00:00 2001 From: "paul.baranowski" Date: Fri, 19 Nov 2010 15:52:30 -0500 Subject: [PATCH] Fixed bug when adding a playlist to the scratchpad. --- htmlUI/ui_base.inc.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/htmlUI/ui_base.inc.php b/htmlUI/ui_base.inc.php index eb8391f94..7f3e07ad9 100644 --- a/htmlUI/ui_base.inc.php +++ b/htmlUI/ui_base.inc.php @@ -267,10 +267,15 @@ class uiBase } else { $this->id = $this->gb->storId; } - if (!is_null($this->id)) { - $f = StoredFile::Recall($this->id); - $this->type = $f->getType(); + if (isset($_REQUEST["type"]) && ($_REQUEST["type"] == "playlist")) { + $this->type = "playlist"; + } else { + $this->type = "audioclip"; } +// if (!is_null($this->id)) { +// $f = StoredFile::Recall($this->id); +// $this->type = $f->getType(); +// } } }