[BUGFIX] BE shortcuts do not show up for editors
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / DataPreprocessor.php
index 4c3843f..c7540d1 100644 (file)
@@ -135,7 +135,7 @@ class DataPreprocessor {
                                                        }
                                                }
                                                // Default values as submitted:
-                                               if (is_array($this->defVals[$table])) {
+                                               if (!empty($this->defVals[$table]) && is_array($this->defVals[$table])) {
                                                        foreach ($this->defVals[$table] as $theF => $theV) {
                                                                if (isset($GLOBALS['TCA'][$table]['columns'][$theF])) {
                                                                        $newRow[$theF] = $theV;