Fix entry parts ending up in the wrong column in Log viewer.
Fix entry parts ending up in the wrong column in Log viewer.

This fixes: https://github.com/ryancramerdesign/ProcessWire/issues/1822

This fix includes changes for the count($parts) == 3 section which are necessary, but also includes changes for the count($parts) == 2 section which may be checking for situations that aren't possible, so see what you think about those changes.

I have included a nested ternary, but I think in this case it reads quite clearly and is ok, but you may want to revisit.

I'll add a comment shortly with a test log file so you can see these changes in action.
OpenLGK/ProcessWire,sunlix/ProcessWire,sunlix/ProcessWire,OpenLGK/ProcessWire,sunlix/ProcessWire,OpenLGK/ProcessWire,sunlix/ProcessWire,sunlix/ProcessWire,OpenLGK/ProcessWire