CC-4348: Prepared statements - part 4

-StreamSetting.php
This commit is contained in:
Martin Konecny 2012-09-05 15:15:56 -04:00
parent 6955708723
commit f036c84a64
2 changed files with 107 additions and 61 deletions

View file

@ -16,9 +16,6 @@ class Application_Model_Preference
$id = $auth->getIdentity()->id;
}
$key = pg_escape_string($key);
$value = pg_escape_string($value);
//Check if key already exists
$sql = "SELECT COUNT(*) FROM cc_pref"
." WHERE keystr = '$key'";