modified : update phrase issue fixed
This commit is contained in:
parent
31843606cb
commit
1501a9122e
1 changed files with 2 additions and 1 deletions
|
@ -120,9 +120,10 @@ class language
|
||||||
function update_phrase($id,$text,$lang_code='en')
|
function update_phrase($id,$text,$lang_code='en')
|
||||||
{
|
{
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
//First checking if phrase already exists or not
|
//First checking if phrase already exists or not
|
||||||
if($this->get_phrase($id,$lang_code))
|
if($this->get_phrase($id,$lang_code))
|
||||||
$db->update(tbl("phrases"),array('text'),array(mysql_real_escape_string($text))," id = '".mysql_real_escape_string($id)."' ");
|
$db->update(tbl("phrases"),array('text'),array(mysql_escape_string($text))," id = '".mysql_escape_string($id)."' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue