Actions
Bug #41719
closedBad comparison for strings
Status:
Closed
Priority:
Should have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2012-10-08
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
ResourceStorage:
if (in_array($action, array('read'))) {
There is no need for in_array() call on this line and below. A simple string comparison is faster and more readable in this case.
Function checkFileActionPermission().
Actions