Commit 2b379f1a authored by Carsten  Rose's avatar Carsten Rose
Browse files

General Error: access to uninitialized array element

parent 193bb2e9
Pipeline #1148 passed with stage
in 1 minute and 36 seconds
......@@ -375,14 +375,13 @@ class Save {
$pathFileNameTmp=''; // see '4'
} else {
if (empty($pathFileName)) {
$pathFileNameTmp = $primaryRecord[$column]; // see '3'
$pathFileNameTmp = $primaryRecord[$column]??''; // see '3'. Attention: in case of Advanced Upload, $primaryRecord[$column] does not exist.
} else {
$pathFileNameTmp = $pathFileName; // see '1,2,5'
}
}
// Get latest file information
if($pathFileNameTmp=='') {
// No new upload and no existing: take care to remove previous upload file statistics.
$this->store->unsetVar(VAR_FILE_MIME_TYPE, STORE_VAR);
......@@ -392,7 +391,6 @@ class Save {
$this->store->appendToStore($vars, STORE_VAR);
}
// If given: fire a sqlBefore query
$this->evaluate->parse($formElement[FE_SQL_BEFORE]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment