I use Open Academy Distribution, I've updated it to the last version (7.x-1.1) - and sometimes I see these things in the Adminitration Menu:

Notice: Undefined index: height in function image_resize_filter_get_images() (line 390 in file .../profiles/openacademy/modules/contrib/image_resize_filter/image_resize_filter.module).
Notice: Undefined index: height in function image_resize_filter_get_images() (line 443 in file .../profiles/openacademy/modules/contrib/image_resize_filter/image_resize_filter.module).

Each of these messages repeats 4 times.
Howcan I fix this? Are there any patches, that can solve this problem? It's not dangerous, as I suppose, but it's annoying.

Now these strings in file image_resize_filter.module are:
390 if (!$attributes['height'] && is_numeric($attributes['width'])) {
391 $ratio = $actual_height/$actual_width;
392 $attributes['height'] = (int) round($ratio * $attributes['width']);
393 }

442 $images[] = array(
443 'expected_size' => array('width' => $attributes['width'], 'height' => $attributes['height']),
444 'actual_size' => array('width' => $image_size[0], 'height' => $image_size[1]),
445 'attributes' => $attributes,
446 'resize' => $resize,
447 'img_tag' => $img_tag,
448 'has_link' => $has_link,
449 'original' => $src,
450 'location' => $location,
451 'local_path' => $local_path,
452 'mime' => $image_size['mime'],
453 'extension' => $extension,
445 );

Please, help..

Comments

summerwinter’s picture