Bug #23705 » 15958_v5.patch

Administrator Admin, 2011-01-10 12:03

View differences:

t3lib/class.t3lib_tceforms.php (revision )
2706 2706
	function getSingleField_typeFlex_draw($dataStruct, $editData, $table, $field, $row, &$PA, $formPrefix = '', $level = 0, $idPrefix = 'ID', $toggleClosed = FALSE) {
2707 2707

  
2708 2708
		$output = '';
2709
		if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField']) && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] > 0) {
2710
			$mayRestructureFlexforms = TRUE;
2711
		} else {
2709
		$mayRestructureFlexforms = $GLOBALS['BE_USER']->checkLanguageAccess(0);
2712
			$mayRestructureFlexforms = $GLOBALS['BE_USER']->checkLanguageAccess(0);
2713
		}
2710

  
2714
	    
2711 2715
			// Data Structure array must be ... and array of course...
2712 2716
		if (is_array($dataStruct)) {
2713 2717
			foreach ($dataStruct as $key => $value) { // Traversing fields in structure:
(2-2/2)