fix WSP-41

This commit is contained in:
Filip Penkava
2017-04-25 14:49:39 +02:00
parent ebf9905b8c
commit d7cec58124
2 changed files with 14 additions and 12 deletions

View File

@@ -232,7 +232,7 @@ if ($obj['type'] == 'text') {
if ($fileExist) {
set_post_thumbnail($post_ID, $fileExist->post_id);
} else {
savePicture($image->src, $post_ID, $image->oldSrc, $obj['associations']);
savePicture($image->src, $post_ID, $image->oldSrc, isset($obj['associations']) ? $obj['associations'] : array(), $image->alt);
}
}
} elseif ($obj['pubstatus'] == 'canceled') {