includes/dbal.php
changeset 860 c931041e689a
parent 857 f3a5a276208c
child 879 9788f2b7e08a
--- 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;
   }