diff --git a/include/downloadurl.php b/include/downloadurl.php index 8bb4b9a..9631f90 100644 --- a/include/downloadurl.php +++ b/include/downloadurl.php @@ -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)) {