Warning when $ax is null in array_key_exists line 265

Jump to: navigation, search

Line 265:

if ( array_key_exists( 'http://axschema.org/namePerson/first', $ax ) || array_key_exists( 'http://axschema.org/namePerson/last', $ax ) )

should be

if ( isset($ax) && ( array_key_exists( 'http://axschema.org/namePerson/first', $ax ) || array_key_exists( 'http://axschema.org/namePerson/last', $ax ) ) ) {

to prevent warning message on line 265 when logging in using an OpenID for the first time and $ax is null.

Wikinaut21:26, 9 June 2011
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox