jc21 / plex-api

PHP API for Plex Servers
Other
35 stars 8 forks source link

PlexApi->filter returns warning: Undefined index: Video in /svr/www/cgi-bin/vendor/jc21/plex-api/src/jc21/PlexApi.php on line 405 #13

Open delovelady opened 2 years ago

delovelady commented 2 years ago

When executing this code:

$res = $client->filter($sectionNumber, [$filter1], true) ;

a warning is logged stating that Video is an undefined index.

Image shows the occurrence as well as the values in $results at the time.

Screen Shot 2022-08-29 at 9 10 28 AM

It would be good practice to avoid extra warnings in the log (by other than reducing the logging level).