Fix warnings in downloadurl::processForm(). Calling this method with inappropriate $aClean[]

data is perfectly valid but in tht case the function should return silently
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-21 19:46:17 +00:00
committed by WineHQ
parent 8093a81da2
commit 995076af3b

View File

@@ -301,6 +301,12 @@ class downloadurl
/* Process a form made only for submitting one URL */
function processFormSingle($iVersionId, $aValues, $bUnQueue = FALSE)
{
/* Calling this function without suitable input data is perfectly valid,
but in that case there is nothing to do here */
if(empty($aValues['sDownloadUrlDescription']) ||
empty($aValues['sDownloadUrlUrl']))
return;
$iId = null;
if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE))
{