diff options
Diffstat (limited to 'classes/File.php')
-rw-r--r-- | classes/File.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/File.php b/classes/File.php index 56d9f9827..68d385d1e 100644 --- a/classes/File.php +++ b/classes/File.php @@ -79,9 +79,8 @@ class File extends Memcached_DataObject if (isset($redir_data['type']) && ('text/html' === substr($redir_data['type'], 0, 9)) - && ($oembed_data = File_oembed::_getOembed($given_url)) - && isset($oembed_data['json'])) { - File_oembed::saveNew($oembed_data['json'], $file_id); + && ($oembed_data = File_oembed::_getOembed($given_url))) { + File_oembed::saveNew($oembed_data, $file_id); } return $x; } |