diff --git a/Classes/Format/Mods.php b/Classes/Format/Mods.php index 9a4ced0cd..271ae88c7 100644 --- a/Classes/Format/Mods.php +++ b/Classes/Format/Mods.php @@ -325,7 +325,7 @@ private function getPlaces(): void if (!empty($places)) { foreach ($places as $place) { $this->metadata['place'][] = $place; - if (!$this->metadata['place_sorting'][0]) { + if (empty($this->metadata['place_sorting'][0])) { $this->metadata['place_sorting'][0] = preg_replace('/[[:punct:]]/', '', $place); } } @@ -363,7 +363,7 @@ private function getYears(): void $issued = $year->getIssuedDates(); if (!empty($issued)) { $this->metadata['year'][] = $issued[0]->getValue(); - if (!$this->metadata['year_sorting'][0]) { + if (empty($this->metadata['year_sorting'][0])) { $yearSorting = str_ireplace('x', '5', preg_replace('/[^\d.x]/i', '', $issued[0]->getValue())); if ( strpos($yearSorting, '.')