Fix undefined variable in album widgets

The Album and Portfolio widgets would reference the undefined
$phototypes array to determine the file extensions of the image sources.

It appears that the extension is not really necessary, but for
completeness I fixed the issue so that the appropriate extension will be
used by for the image source attribute.
This commit is contained in:
Harald Eilertsen
2025-06-07 23:09:46 +02:00
parent 5db855abfe
commit 13755060d7
2 changed files with 7 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ class Album {
//edit album name
$album_edit = null;
$ph = photo_factory('');
$phototypes = $ph->supportedTypes();
$photos = array();
if($r) {
$twist = 'rotright';

View File

@@ -66,6 +66,10 @@ class Portfolio {
//edit album name
$album_edit = null;
$ph = photo_factory('');
$phototypes = $ph->supportedTypes();
$photos = array();
if($r) {
$twist = 'rotright';