Fix array access on possibly undefined index.
This commit is contained in:
parent
04a05ca236
commit
a547c5f642
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user