Allow removing downloadurl from queued versions

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-10-03 13:53:13 +02:00
committed by Chris Morgan
parent a57d236392
commit e738a6d58e

View File

@@ -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);