Project

General

Profile

Actions

Bug #41719

closed

Bad comparison for strings

Added by Dmitry Dulepov about 12 years ago. Updated about 7 years ago.

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

Also available in: Atom PDF