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:
committed by
WineHQ
parent
8093a81da2
commit
995076af3b
@@ -301,6 +301,12 @@ class downloadurl
|
|||||||
/* Process a form made only for submitting one URL */
|
/* Process a form made only for submitting one URL */
|
||||||
function processFormSingle($iVersionId, $aValues, $bUnQueue = FALSE)
|
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;
|
$iId = null;
|
||||||
if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE))
|
if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user