- Patch #774218 by jhedstrom: the RDFa markup for custom image field is invalid.

merge-requests/26/head
Dries Buytaert 2010-06-23 02:40:56 +00:00
parent 99ec176a5d
commit 522b923a8b
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ function rdf_preprocess_field(&$variables) {
// the file. We correct this by adding a resource attribute to the div if
// this field has a URI.
if (isset($item['uri'])) {
if (isset($element[$delta]['#image_style'])) {
if (!empty($element[$delta]['#image_style'])) {
$variables['item_attributes_array'][$delta]['resource'] = image_style_url($element[$delta]['#image_style'], $item['uri']);
}
else {