Allow exercise edition even if it's added in a LP, "dangerous" fields are freezed  BT#7174
Fixing PHP warning + format code.