From a547c5f642c23dd4f1c83b4a1500914c0ef1c861 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Fri, 6 Mar 2009 21:50:19 +0100 Subject: [PATCH] Fix array access on possibly undefined index. --- lib/omb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;