[BUGFIX] Fix incorrect return type in VersionView 80/43980/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Sun, 11 Oct 2015 12:08:25 +0000 (14:08 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 11 Oct 2015 12:26:27 +0000 (14:26 +0200)
Releases: master
Resolves: #70580
Change-Id: I418698c00042dc4ef3e4c5d23c349afacfacb9ff
Reviewed-on: http://review.typo3.org/43980
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/version/Classes/View/VersionView.php

index b3eee91..b97c710 100644 (file)
@@ -31,13 +31,13 @@ class VersionView
      *
      * @param int $id Page id to create selector for.
      * @param bool $noAction If set, there will be no button for swapping page.
-     * @return void
+     * @return string
      * @see \TYPO3\CMS\Backend\Template\DocumentTemplate
      */
     public function getVersionSelector($id, $noAction = false)
     {
         if ($id <= 0) {
-            return;
+            return '';
         }
         if ($GLOBALS['BE_USER']->workspace == 0) {
             // Get Current page record: