[core] use ArrayAccess rather than dynamic props for extra columns on the images table

This commit is contained in:
Shish
2024-01-15 17:12:36 +00:00
parent 589ff69eea
commit bbea373c19
22 changed files with 125 additions and 99 deletions

View File

@ -74,12 +74,12 @@ class _SafeOuroborosImage
if (Extension::is_enabled(RatingsInfo::KEY) !== false) {
// 'u' is not a "valid" rating
if ($img->rating == 's' || $img->rating == 'q' || $img->rating == 'e') {
$this->rating = $img->rating;
if ($img['rating'] == 's' || $img['rating'] == 'q' || $img['rating'] == 'e') {
$this->rating = $img['rating'];
}
}
if (Extension::is_enabled(NumericScoreInfo::KEY) !== false) {
$this->score = $img->numeric_score;
$this->score = $img['numeric_score'];
}
$this->source = $img->source;