Fixed bug #11415 - Misleading info: No workspaces found!
authorBenni Mack <benni.mack@typo3.org>
Sat, 18 Sep 2010 10:53:37 +0000 (10:53 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sat, 18 Sep 2010 10:53:37 +0000 (10:53 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-4@8806 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/user/ws/index.php

index 5e17492..bdea2eb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-18  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed bug #11415 - Misleading info: No workspaces found!
+
 2010-09-17  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #15628: Remove logging when class loading failed in t3lib_autoloader (Thanks to Helmut Hummel)
index a9d366d..269b00a 100755 (executable)
@@ -444,7 +444,7 @@ class SC_mod_user_ws_index extends t3lib_SCbase {
                        default:
                                $title = t3lib_iconWorks::getIconImage('sys_workspace', $GLOBALS['BE_USER']->workspaceRec, $this->doc->backPath, ' align="top"').
                                                        '['.$GLOBALS['BE_USER']->workspace.'] '.t3lib_BEfunc::getRecordTitle('sys_workspace',$GLOBALS['BE_USER']->workspaceRec,TRUE);
-                               $description = ($GLOBALS['BE_USER']->workspaceRec['description'] ? htmlspecialchars($GLOBALS['BE_USER']->workspaceRec['description']) : '<em>[' . $LANG->getLL('shortcut_noWSfound') . ']</em>');
+                               $description = $GLOBALS['BE_USER']->workspaceRec['description'];
                        break;
                }
 
@@ -482,10 +482,10 @@ class SC_mod_user_ws_index extends t3lib_SCbase {
                                <td class="t3-col-header" nowrap="nowrap">' . $LANG->getLL('label_workspace') . '&nbsp;</th>
                                <td nowrap="nowrap">' . $title . '</td>
                        </tr>
-                       <tr>
+                       <tr>' . ($description ? '
                                <td class="t3-col-header" nowrap="nowrap">' . $LANG->getLL('label_description') . '&nbsp;</td>
                                <td>' . $description . '</td>
-                       </tr>'.($GLOBALS['BE_USER']->workspace!=-99 && !$details ? '
+                       </tr>' : '') . ($GLOBALS['BE_USER']->workspace!=-99 && !$details ? '
                        <tr>
                                <td class="t3-col-header" nowrap="nowrap">' . $LANG->getLL('label_options') . '&nbsp;</td>
                                <td>' . $menu . $actionLinks . '</td>