Some more notices removed
This commit is contained in:
parent
489d3daa94
commit
bc38420801
|
@ -152,7 +152,7 @@ class OEmbed
|
|||
$oembed->description = $data['text'];
|
||||
}
|
||||
|
||||
if (is_array($data['images'])) {
|
||||
if (!empty($data['images'])) {
|
||||
$oembed->thumbnail_url = $data['images'][0]['src'];
|
||||
$oembed->thumbnail_width = $data['images'][0]['width'];
|
||||
$oembed->thumbnail_height = $data['images'][0]['height'];
|
||||
|
|
|
@ -116,6 +116,10 @@ class Profile
|
|||
return;
|
||||
}
|
||||
|
||||
if (empty($pdata)) {
|
||||
$pdata = ['uid' => 0, 'profile_uid' => 0, 'is-default' => false,'name' => $nickname];
|
||||
}
|
||||
|
||||
// fetch user tags if this isn't the default profile
|
||||
|
||||
if (!$pdata['is-default']) {
|
||||
|
|
Loading…
Reference in a new issue