Skip to content

Commit a5490b7

Browse files
Fix error (regression?) with front-end upload
1 parent 941cdb1 commit a5490b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/com_jtg/models/track.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function saveFile ()
326326
$cfg = JtgHelper::getConfig();
327327
$types = explode(',', $cfg->type);
328328

329-
if (count($images) > 0)
329+
if (!is_null($images) && count($images) > 0)
330330
{
331331
foreach ($images as $image)
332332
{

0 commit comments

Comments
 (0)