Dienstag, 14. Februar 2012

IMDBPHP2 Ticket: Undefined property in pilotsearch.class.php

I'm actually using the IMDBPHP2 for a new project and found a small problem:

For example search for "Alien", it will echo:
Notice: Undefined property: stdClass::$imdb in imdbphp2\pilotsearch.class.php on line 123
Just encapsule the lines with follwing if statement:
if (isset($movie→alternative_identifiers→imdb)) {
and the problem is solved.

Ticket: Undefined property in pilotsearch.class.php
http://projects.izzysoft.de/trac/imdbphp/ticket/288

Update from Author:
Thanx! I set an additional layer on top just to make sure (in case alternate_identifiers itself is not defined). So consider it fixed at r504

Keine Kommentare:

Kommentar veröffentlichen