Closed (fixed)
Project:
Gallery Assist
Version:
6.x-1.12
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2010 at 05:35 UTC
Updated:
8 Jun 2010 at 04:50 UTC
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 commentedfixed in version 1.15-beta1