Fix array access on possibly undefined index.

This commit is contained in:
Adrian Lang 2009-03-06 21:50:19 +01:00
parent 04a05ca236
commit a547c5f642
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ function omb_update_profile($profile, $remote_profile, $subscription)
return false;
} else { # success!
parse_str($result->body, $return);
if ($return['omb_version'] == OMB_VERSION_01) {
if (isset($return['omb_version']) && $return['omb_version'] === OMB_VERSION_01) {
return true;
} else {
return false;