Skip to content

Commit

Permalink
Updated default value for images array
Browse files Browse the repository at this point in the history
  • Loading branch information
liutauraskavaliauskas committed Mar 22, 2017
1 parent 63bb573 commit 7e3cdef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/http/controllers/HCGalleriesController.php
Expand Up @@ -230,7 +230,7 @@ protected function getInputData()
array_set($data, 'record.expires_at', array_get($_data, 'expires_at'));

array_set($data, 'translations', array_get($_data, 'translations'));
array_set($data, 'images', array_get($_data, 'images'));
array_set($data, 'images', array_get($_data, 'images', []));

foreach ($data['translations'] as &$value)
$value['slug'] = generateHCSlug(GalleriesTranslations::getTableName() . '_' . $value['language_code'], $value['title']);
Expand Down

0 comments on commit 7e3cdef

Please sign in to comment.