fix #644 Status off by default

This commit is contained in:
Nicolas Le Goff
2012-05-25 19:41:22 +02:00
parent 5c19104bef
commit 7c371a11cd
2 changed files with 5 additions and 4 deletions

View File

@@ -167,8 +167,9 @@ class Upload implements ControllerProviderInterface
$postStatus = $request->get('status');
if (is_array($postStatus)) {
if (isset($postStatus[$collection->get_sbas_id()]) && is_array($postStatus[$collection->get_sbas_id()])) {
$postStatus = $postStatus[$collection->get_sbas_id()];
$status = '';
foreach (range(0, 64) as $i) {
$status .= isset($postStatus[$i]) ? ($postStatus[$i] ? '1' : '0') : '0';