imaging: Fix imaging server to entity association PHP-side

getUserLocations was declared twice