Actions
Bug #20604
closedPHP casting causes workspace message to appear in Web/View
Start date:
2009-06-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Somehow the integer-comparison casting in PHP makes
$this->fePreview == 2
return TRUE for "$this->fePreview = 1"
You can reveal that paradox by doing:
function previewInfo() {
if ($this->fePreview) {
if ($this->fePreview==2) {
$text = $this->fePreview . ' Preview of workspace ...
You'll get "1 Preview of workspace ..."
Solution: change all comparisons to ===
Effects: Doesn't show preview workspace information if no version-view or workspace-view is in effect
(issue imported from #M11311)
Files
Actions