diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-05-20 13:13:36 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-05-20 13:13:36 -0700 |
commit | 3193c04346db1095bc0cf1a9ee4a8964d26537f8 (patch) | |
tree | 8a99113918f053493344712115893ffb0a307f72 /lib/helpers.php | |
parent | f255179c39211a159932ca3f8a2738b3c943f09d (diff) |
more checks
Diffstat (limited to 'lib/helpers.php')
-rw-r--r-- | lib/helpers.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers.php b/lib/helpers.php index b64b258..cb9edd0 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -239,7 +239,7 @@ function get_micropub_config(&$user, $query=[]) { $user->syndication_targets = json_encode($targets); $media_endpoint = false; - if(array_key_exists('media-endpoint', $r['data'])) { + if($r['data'] && is_array($r['data']) && array_key_exists('media-endpoint', $r['data'])) { $media_endpoint = $r['data']['media-endpoint']; $user->micropub_media_endpoint = $media_endpoint; } |