Issue Bug Closed

#54018Extra compare in InlineElement::renderForeignRecord()

Michiel Roos 11/27/13, 20:12 updated 10/02/18, 12:08

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.

Reviews 1