d3c034f8e8
The issue was that clean_param took an int and returned a string and the result was used in an exact comparison. The type change mean the comparison failed. The solution was to ensure the param was cast as a string.