Index: typo3/alt_shortcut.php =================================================================== RCS file: /cvsroot/typo3/TYPO3core/typo3/alt_shortcut.php,v retrieving revision 1.24 diff -u -r1.24 alt_shortcut.php --- typo3/alt_shortcut.php 27 Dec 2005 01:35:53 -0000 1.24 +++ typo3/alt_shortcut.php 28 Dec 2005 10:15:59 -0000 @@ -627,9 +627,11 @@ // Add custom workspaces (selecting all, filtering by BE_USER check): $workspaces = $TYPO3_DB->exec_SELECTgetRows('uid,title,adminusers,members,reviewers','sys_workspace','pid=0'.t3lib_BEfunc::deleteClause('sys_workspace'),'','title'); - foreach($workspaces as $rec) { - if ($BE_USER->checkWorkspace($rec)) { - $options[$rec['uid']] = $rec['uid'].': '.$rec['title']; + if ($workspaces) { + foreach($workspaces as $rec) { + if ($BE_USER->checkWorkspace($rec)) { + $options[$rec['uid']] = $rec['uid'].': '.$rec['title']; + } } }