Revize c2e44ab0
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/models/street.php | ||
---|---|---|
*/
|
||
public function get_street($street = NULL, $town_id = NULL)
|
||
{
|
||
$streets = $this->where(array
|
||
(
|
||
'street' => $street,
|
||
'town_id' => $town_id
|
||
))->find_all();
|
||
$streets = $this->db->query("
|
||
SELECT *
|
||
FROM streets
|
||
WHERE town_id = ? AND LOWER(street) = ?
|
||
", $town_id, strtolower($street));
|
||
|
||
if (count($streets) == 0)
|
||
{
|
Také k dispozici: Unified diff
Release 1.0.12