summaryrefslogtreecommitdiff
path: root/lib/omb.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-03-06 21:50:19 +0100
committerAdrian Lang <mail@adrianlang.de>2009-03-11 10:38:48 +0100
commita547c5f642c23dd4f1c83b4a1500914c0ef1c861 (patch)
tree0e911ace62b41b6dae04809d675fb36ded25c10c /lib/omb.php
parent04a05ca236e0c61da2ddc4c8f93e2ba153466342 (diff)
Fix array access on possibly undefined index.
Diffstat (limited to 'lib/omb.php')
-rw-r--r--lib/omb.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/omb.php b/lib/omb.php
index 878c735da..e8e1acc41 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;