]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix array access on possibly undefined index.
authorAdrian Lang <mail@adrianlang.de>
Fri, 6 Mar 2009 20:50:19 +0000 (21:50 +0100)
committerAdrian Lang <mail@adrianlang.de>
Wed, 11 Mar 2009 09:38:48 +0000 (10:38 +0100)
lib/omb.php

index 878c735dae9cf6cc5429886bb83662bff5279af7..e8e1acc4139b6aa59fe916f1938e6817986ffa19 100644 (file)
@@ -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;