[BUGFIX] Add missing type casts in ExportController 25/61325/3
authorFrank Naegler <frank.naegler@typo3.org>
Fri, 19 Jul 2019 11:35:55 +0000 (13:35 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 19 Jul 2019 12:05:08 +0000 (14:05 +0200)
This patch adds a type cast to fix broken export of tables.

Resolves: #88803
Releated: #88662
Releases: master
Change-Id: I9fe725ddadf2a9d63d3c8af8005a453a68dc46cc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61325
Tested-by: Daniel Windloff
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Daniel Windloff
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/impexp/Classes/Controller/ExportController.php

index 415e570..fafa301 100644 (file)
@@ -202,7 +202,7 @@ class ExportController extends ImportExportController
             foreach ($inData['list'] as $ref) {
                 $rParts = explode(':', $ref);
                 if ($beUser->check('tables_select', $rParts[0])) {
-                    $statement = $this->exec_listQueryPid($rParts[0], $rParts[1]);
+                    $statement = $this->exec_listQueryPid($rParts[0], (int)$rParts[1]);
                     while ($subTrow = $statement->fetch()) {
                         $this->export->export_addRecord($rParts[0], $subTrow);
                     }
@@ -267,7 +267,7 @@ class ExportController extends ImportExportController
                 $flatList = $this->export->setPageTree($idH);
                 foreach ($flatList as $k => $value) {
                     $this->export->export_addRecord('pages', BackendUtility::getRecord('pages', $k));
-                    $this->addRecordsForPid($k, $inData['pagetree']['tables']);
+                    $this->addRecordsForPid((int)$k, $inData['pagetree']['tables']);
                 }
             }
         }