[BUGFIX] PHP Warning in HistoryService
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Classes / Service / HistoryService.php
index 2d02d20..eccd0f8 100644 (file)
@@ -55,7 +55,7 @@ class HistoryService implements \TYPO3\CMS\Core\SingletonInterface {
        public function getHistory($table, $id) {
                $history = array();
                $i = 0;
-               foreach ($this->getHistoryObject($table, $id)->changeLog as $entry) {
+               foreach ((array)$this->getHistoryObject($table, $id)->changeLog as $entry) {
                        if ($i++ > 20) {
                                break;
                        }