From: Adrian Lang Date: Fri, 6 Mar 2009 20:50:19 +0000 (+0100) Subject: Fix array access on possibly undefined index. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a547c5f642c23dd4f1c83b4a1500914c0ef1c861;p=quix0rs-gnu-social.git Fix array access on possibly undefined index. --- diff --git a/lib/omb.php b/lib/omb.php index 878c735dae..e8e1acc413 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -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;