Browse Source

more checks

pull/52/head
Aaron Parecki 8 years ago
parent
commit
3193c04346
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/helpers.php

+ 1
- 1
lib/helpers.php View File

@ -239,7 +239,7 @@ function get_micropub_config(&$user, $query=[]) {
$user->syndication_targets = json_encode($targets); $user->syndication_targets = json_encode($targets);
$media_endpoint = false; $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']; $media_endpoint = $r['data']['media-endpoint'];
$user->micropub_media_endpoint = $media_endpoint; $user->micropub_media_endpoint = $media_endpoint;
} }

Loading…
Cancel
Save