added check for configuration - during cal_introduction installation events are impor...
authormario_matzulla <mario_matzulla@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 2 Aug 2015 15:58:11 +0000 (15:58 +0000)
committermario_matzulla <mario_matzulla@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 2 Aug 2015 15:58:11 +0000 (15:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/caldav/trunk@89518 735d13b6-9817-0410-8766-e36946ffe9aa

Classes/Hooks/TceMainProcessdatamap.php

index dcaf991..74c5df5 100644 (file)
@@ -60,6 +60,10 @@ class TceMainProcessdatamap {
                                if($page['doktype'] != 254) {
                                        $tx_cal_api = new \TYPO3\CMS\Cal\Controller\Api ();
                                        $tx_cal_api = &$tx_cal_api->tx_cal_api_without($pageIDForPlugin);
+                                       
+                                       if(! isset ($tx_cal_api->conf ['view.'] ['allowedViewsToLinkTo'])) {
+                                               return;
+                                       }
 
                                        if($table == 'tx_cal_event'){
                                                $eventObject = $tx_cal_api->modelObj->findEvent($event['uid'], 'tx_cal_phpicalendar', $tx_cal_api->conf['pidList'], false, false, false, true, true);