Generalisation of an array-failure-correction method