* Updated requirements information
* Added Musicbrainz grabber
* Added new field: artist
+ * Fixed: #11 Undefined index while adding new entry
1.1 - Vortex Rikers 20210530
* Cleanup and merge to one config file. Read upgrade
$_ext = pathinfo($_up['name'][$data['identifier']],PATHINFO_EXTENSION);
$newFilename = sha1($_up['name'][$data['identifier']]).".".$_ext;
+ if(!isset($_up['rebuildUpload'][$data['identifier']])) {
+ $_up['rebuildUpload'][$data['identifier']] = false;
+ }
+
$queryData['after']['upload'][] = array(
'identifier' => $data['identifier'],
'name' => $newFilename,
'rebuildUpload' => $_up['rebuildUpload'][$data['identifier']]
);
}
+
return $queryData;
}
$_ext = pathinfo($_up['name'][$data['identifier']][$k],PATHINFO_EXTENSION);
$newFilename = sha1($_up['name'][$data['identifier']][$k]).".".$_ext;
+ if(!isset($_up['rebuildUpload'][$data['identifier']][$k])) {
+ $_up['rebuildUpload'][$data['identifier']][$k] = false;
+ }
+
$queryData['after']['upload'][] = array(
'identifier' => $data['identifier'],
'name' => $newFilename,
* @param string $queryString
* @param string $insertId Number
*/
- private function _runAfter_query($queryString, $insertId) {
+ private function _runAfter_query(string $queryString, string $insertId) {
if(!empty($queryString) && !empty($insertId)) {
// replace only once to avoid replacing actual data
$queryStr = Summoner::replaceOnce($queryString,$this->_replaceEntryString, $insertId);