* Addition to the hook in process_datamap: now checks if the user-defined method...
authorRobert Lemke <robert.lemke@typo3.org>
Fri, 11 Jun 2004 19:25:57 +0000 (19:25 +0000)
committerRobert Lemke <robert.lemke@typo3.org>
Fri, 11 Jun 2004 19:25:57 +0000 (19:25 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@373 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_tcemain.php

index f7b7197..7529917 100755 (executable)
@@ -557,7 +557,9 @@ class t3lib_TCEmain {
                                                        if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'])) {
                                                                foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'] as $_classRef) {
                                                                        $_procObj = &t3lib_div::getUserObj ($_classRef);
-                                                                       $_procObj->processDatamap_preProcessFieldArray ($status, $table, $id, &$fieldArray, &$this);
+                                                                       if (method_exists ($_procObj, 'processDatamap_preProcessFieldArray')) {
+                                                                               $_procObj->processDatamap_preProcessFieldArray ($status, $table, $id, &$fieldArray, &$this);
+                                                                       }
                                                                }
                                                        }