Untitled

 avatar
unknown
php
2 years ago
912 B
5
Indexable
if ($origin_type === 'room') {
                $type_object = Event::find($room_id);
            } else if ($origin_type === 'media_room') {
                $type_object = MediaRoom::find($room_id);
            } else if ($origin_type === 'stage_location') {
                $type_object = \StageLocation\StageLocation::find($room_id);
            } else if ($origin_type === 'stadium') {
                $type_object = \Stadium\StadiumExperience::find($meeting_stadium_experience[0]);
            }
            if (isset($type_object) && $origin_type !== 'stadium' && Input::has('image') && Input::get('image') === $type_object->background_image) {
                $store_image_in_usage = true;
            }
            if (isset($type_object) && $origin_type === 'stadium' && Input::has('image') && Input::get('image') === $type_object->thumbnail) {
                $store_image_in_usage = true;
            }
Editor is loading...