Add stops/stops by suburb geositemap
[busui.git] / include / db / stop-dao.inc.php
blob:a/include/db/stop-dao.inc.php -> blob:b/include/db/stop-dao.inc.php
--- a/include/db/stop-dao.inc.php
+++ b/include/db/stop-dao.inc.php
@@ -30,7 +30,7 @@
 	}
 	$query.= " order by stop_name;";
 	$query = $conn->prepare($query);
-        $query->bindParam(":firstLetter", $firstLetter);
+        if ($firstLetter != "") $query->bindParam(":firstLetter", $firstLetter);
 	$query->execute();
 	if (!$query) {
 		databaseError($conn->errorInfo());