From e738a6d58e8305aabbe07be8e326bc66ffc6e1ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Fri, 3 Oct 2008 13:53:13 +0200 Subject: [PATCH] Allow removing downloadurl from queued versions --- include/downloadurl.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/downloadurl.php b/include/downloadurl.php index 340e2f2..4b0498d 100644 --- a/include/downloadurl.php +++ b/include/downloadurl.php @@ -351,6 +351,12 @@ class downloadurl if(!$this->bQueued && !$this->canEdit($this->iVersionId)) return FALSE; + if(!$this->sDescription && !$this->sUrl) + { + $this->delete(); + return true; + } + $hResult = query_parameters("UPDATE appData SET description = '?', url = '?' WHERE id = '?'", $this->sDescription, $this->sUrl, $this->iId);