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
Merge pull request #111 from libasys/patch-2

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