Issue #7:  Invalid input passed to implode

Code correction.