Closed (cannot reproduce)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
Core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Jul 2015 at 15:13 UTC
Updated:
18 Aug 2015 at 07:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
miro_dietikerNooooo... A ternary operator is not intended as a replacement for a regular if condition.
It should be only used for a lvalue assignment.
a = b ? c : d;
In all other cases, please write ifs such as:
But i think we should even check for is_array instead of !is_string.
Comment #2
LKS90 commentedSwitched to an if statement, got it now.
Also using
is_arrayinstead of!is_stringnow.Comment #3
LKS90 commentedComment #4
miro_dietikerWow, so much readable! ;-)
Comment #5
berdirNot going to happen without test coverage that shows how it is wrong and that it is now better :)
Comment #6
LKS90 commentedCan't reproduce anymore, tried with several translators. Seems like the problem resolved itself in the meantime.