Commit a2013342 authored by Thomas Löffler's avatar Thomas Löffler

Casts all text fields to string in case of null

Prevents sql errors on writing to database
parent ad6454db
Pipeline #2116 passed with stages
in 1 minute and 12 seconds
......@@ -965,19 +965,19 @@ class tx_ter_api
'composerinfo' => json_encode($extensionInfoData->technicalData->composerInfo),
'shy' => (int)$extensionInfoData->technicalData->shy,
'dependencies' => serialize($dependenciesArr),
'createdirs' => $extensionInfoData->technicalData->createDirs,
'createdirs' => (string)$extensionInfoData->technicalData->createDirs,
'priority' => $extensionInfoData->technicalData->priority,
'modules' => $extensionInfoData->technicalData->modules,
'modules' => (string)$extensionInfoData->technicalData->modules,
'uploadfolder' => (int)$extensionInfoData->technicalData->uploadFolder,
'modifytables' => $extensionInfoData->technicalData->modifyTables,
'modifytables' => (string)$extensionInfoData->technicalData->modifyTables,
'clearcacheonload' => (int)$extensionInfoData->technicalData->clearCacheOnLoad,
'locktype' => $extensionInfoData->technicalData->lockType,
'authorname' => $extensionInfoData->metaData->authorName,
'authoremail' => $extensionInfoData->metaData->authorEmail,
'authorcompany' => $extensionInfoData->metaData->authorCompany,
'authorname' => (string)$extensionInfoData->metaData->authorName,
'authoremail' => (string)$extensionInfoData->metaData->authorEmail,
'authorcompany' => (string)$extensionInfoData->metaData->authorCompany,
'codingguidelinescompliance' => $extensionInfoData->infoData->codingGuidelinesCompliance,
'codingguidelinescompliancenote' => $extensionInfoData->infoData->codingGuidelinesComplianceNote,
'loadorder' => $extensionInfoData->technicalData->loadOrder,
'codingguidelinescompliancenote' => (string)$extensionInfoData->infoData->codingGuidelinesComplianceNote,
'loadorder' => (string)$extensionInfoData->technicalData->loadOrder,
];
// Update an existing or insert a new extension details record
......
Markdown is supported
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