Commit fd51a8ce authored by Alberto Paderno's avatar Alberto Paderno Committed by renatog
Browse files

Issue #3272796 by RenatoG, victoria-marina, apaderno, bart lambert, muranod,...

Issue #3272796 by RenatoG, victoria-marina, apaderno, bart lambert, muranod, APolitsin, parijke, Ruturaj Chaubey: Passing null to parameter #1 ($haystack) of type string to strpos() is deprecated
parent 0e4ab28d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ function template_preprocess_colorbox_formatter(&$variables) {
    $variables['image']['#attributes'] = $item_attributes;

    // Do not output an empty 'title' attribute.
    if (strlen($item->title) != 0) {
    if (!empty($item->title)) {
      $variables['image']['#title'] = $item->title;
      $data_cbox_img_attrs['title'] = '"title":"' . $item->title . '"';
    }