Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Find the lines; I think 2795 in module file.
// We use the if to avoid division by zero if the image path is wrong
$img = image_get_info($node->gallitems[$pid]->ppath);
if (count($img)) { // <<< Replace this
...
}
else {
$direction = '';
}
Replacement:
// We use the if to avoid division by zero if the image path is wrong
$img = image_get_info($node->gallitems[$pid]->ppath);
$direction = '';
if ($img && !empty($img['extension'])) { // <<< Replacement
...
}
// else {
// $direction = '';
// }
Note: You can remove else an initiate $direction before if.
Comments
Comment #1
jcmc CreditAttribution: jcmc commentedfixed in version 1.15-beta1