fix l2 errors
This commit is contained in:
@@ -183,9 +183,9 @@ class Ratings extends Extension
|
||||
public function onBulkImport(BulkImportEvent $event)
|
||||
{
|
||||
if (array_key_exists("rating", $event->fields)
|
||||
&& $event->fields->rating != null
|
||||
&& Ratings::rating_is_valid($event->fields->rating)) {
|
||||
$this->set_rating($event->image->id, $event->fields->rating, "");
|
||||
&& $event->fields['rating'] != null
|
||||
&& Ratings::rating_is_valid($event->fields['rating'])) {
|
||||
$this->set_rating($event->image->id, $event->fields['rating'], "");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user