Revize 1078
Přidáno uživatelem Ondřej Fibich před více než 13 roky(ů)
freenetis/branches/testing/application/models/country.php | ||
---|---|---|
*/
|
||
public function find_country_by_area($area)
|
||
{
|
||
return $this->db->query("
|
||
$result = $this->db->query("
|
||
SELECT * FROM countries
|
||
WHERE ? LIKE CONCAT( country_name, '%' )
|
||
LIMIT 0,1
|
||
", array($area))->current();
|
||
", array($area));
|
||
|
||
return ($result && $result->count()) ? $result->current() : NULL;
|
||
}
|
||
|
||
}
|
freenetis/branches/testing/application/models/enum_type.php | ||
---|---|---|
COLLATE utf8_general_ci
|
||
", $value);
|
||
|
||
if ($result && $result->count() > 1)
|
||
if ($result && $result->count())
|
||
{
|
||
return $result->current()->id;
|
||
}
|
Také k dispozici: Unified diff
Oprava modelu zpusobujici chybu pri ukonceni clenstvi.