modified : update phrase issue fixed

This commit is contained in:
Fahad Abbas 2016-01-12 12:19:18 +00:00
parent 31843606cb
commit 1501a9122e

View file

@ -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)."' ");
} }
/** /**