Update controller.php

[#31538] Smart Search error caused by Array to string conversion in master controller