Actions
Bug #18589
closedSplit does not work with returnKey = 0
Start date:
2008-04-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Problem:
You can't use split to return the first element of a splited value. It will return the whole string instead.
split {
token.char = 10
returnKey = 0
}
Checking a var that contains a zero in an if statement always resolves to false....
Resolution:
Checking with is_numeric().
See attached patch, it's a no brainer.
Will report to core list.
(issue imported from #M8064)
Files
Actions