Project

General

Profile

Actions

Bug #54018

closed

Extra compare in InlineElement::renderForeignRecord()

Added by Michiel Roos over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
Start date:
2013-11-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

The line:

$isNewRecord = MathUtility::canBeInterpretedAsInteger($rec['uid']) ? FALSE : TRUE;

Can be replaced with:

$isNewRecord = MathUtility::canBeInterpretedAsInteger($rec['uid']);

Since MathUtility::canBeInterpretedAsInteger() returns a boolean.

Actions

Also available in: Atom PDF