Fix for Undefined variable: path ... /apps/gallery/ajax/getimages.php#55

Small fix to prefend error "undefined variable $path in foreach loop on line 61