fatfishdigital / zoommeeting

Zoom plugin for Craft Cms
Other
2 stars 2 forks source link

craft 3.5.16 breaks zoom plugin #10

Open axelhebenstreit opened 3 years ago

axelhebenstreit commented 3 years ago

this

{% if slug is defined %} 
{% set entry = craft.entries.slug(slug).one() %} 
{% endif %} 

{% set zoomid = craft.zoom.get_meetingById(entry.zoommeetingid[0]) %} 

used to work before update to craft 3.5.16

now the zoom plugin does not work any more!

PHP Notice – yii\base\ErrorException

Trying to get property 'topic' of non-object
1. in /srv/users/axel/apps/craft/vendor/fatfish/zoom/src/variables/zoomvariable.php at line 36 
        /**
         * @param $MeetingId
         * @return array
         */
        public function get_meetingById($MeetingId)
        {
            $result=Zoom::$plugin->zoomeeting->get_meeting_details($MeetingId);
            $this->_Meeting=[
                    'topic'=>$result->topic,
                    'timezone'=>$result->timezone,
                    'start_time'=>$result->start_time,
                    'status'=>$result->status,
                    'start_meeting'=>$result->agenda,
                    'join_meeting'=>$result->join_url,
                    'join_meeting_byBrowser'=>"https://zoom.us/wc/join/$result->id",
                    'password'=>$result->password,
            ];
            return $this->_Meeting;