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

View File

@ -305,7 +305,7 @@ function omb_update_profile($profile, $remote_profile, $subscription)
return false; return false;
} else { # success! } else { # success!
parse_str($result->body, $return); 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; return true;
} else { } else {
return false; return false;