author | Dan |
Sat, 14 Mar 2009 15:24:56 -0400 | |
changeset 860 | c931041e689a |
parent 859 | 031673c200f5 |
child 861 | b550f497cdbf |
includes/dbal.php | file | annotate | diff | comparison | revisions |
--- a/includes/dbal.php Sat Mar 14 14:14:41 2009 -0400 +++ b/includes/dbal.php Sat Mar 14 15:24:56 2009 -0400 @@ -822,7 +822,7 @@ exit; } - function die_json() + function die_json($loc = false) { $e = str_replace("\n", "\\n", addslashes(htmlspecialchars(pg_last_error()))); $q = str_replace("\n", "\\n", addslashes($this->latest_query)); @@ -1148,7 +1148,7 @@ function escape($str) { - $str = pg_escape_string($str); + $str = pg_escape_string($this->_conn, $str); return $str; }