Update smithsearch.php

removed the ampersands for pass by reference on line 113 and line 114. Added error reporting block because line 121 produces the error with the offset and undefined index 'T'.