ronefel / moodle-mod_googlemeet

Google Meet resource module plugin for Moodle 3.7+
Other
19 stars 15 forks source link

Google Meet Warning #24

Open licethrey91 opened 2 years ago

licethrey91 commented 2 years ago

Hi Team,

When you create a google meet link a warning is displayed when the Moodle debugger is enabled. (Moodle version 3.11)

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /mod/googlemeet/locallib.php on line 121

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /mod/googlemeet/locallib.php on line 121

We suggest this, because for php 8.0 version it will be something mandatory.

(- if (isset($googlemeet->days) && array_key_exists($wdaydesc[$dayinfo['wday']], $googlemeet->days)) {) (+ if (isset($googlemeet->days) && property_exists($googlemeet->days, $wdaydesc[$dayinfo['wday']])) {)

Screen Shot 2022-03-25 at 10 50 43 AM

Could you help me, please?