Minor cleanup to avoid php notices
Minor cleanup to avoid php notices

* Ensure the $result variable exists
* Use substr() to check the first character of a string

duncan3dc/sql-class,duncan3dc/sql-class