Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

Commit

Permalink
Fixing #108
Browse files Browse the repository at this point in the history
  • Loading branch information
Jako committed Nov 11, 2014
1 parent 590e784 commit 0a4449e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/tvs/multitv/includes/multitv.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ function generateScript()
case 'single':
$tvfields = json_encode(array('fieldnames' => $this->fieldnames, 'fieldtypes' => $this->fieldtypes, 'csvseparator' => $this->configuration['csvseparator']));
$tvheading = array();
$tvelement = array();
$tvelement = array('<li class="element single' . $hasthumb . '"><div>');
foreach ($this->fieldnames as $fieldname) {
$type = (isset($this->fields[$fieldname]['type'])) ? $this->fields[$fieldname]['type'] : 'text';
$elements = (isset($this->fields[$fieldname]['elements'])) ? $this->fields[$fieldname]['elements'] : '';
Expand All @@ -498,7 +498,6 @@ function generateScript()
$tvelement[] = $this->renderMultiTVFormElement($type, $fieldname, $elements, 'mtv_' . $fieldname, $default) . '<br />';
}
}
$tvelement[] = '<li class="element single' . $hasthumb . '"><div>';
$tvelement[] = '</div><div class="clear"></div></li>';
break;
// datatable template
Expand Down

0 comments on commit 0a4449e

Please sign in to comment.