diff --git a/html/inc/boinc_db.inc b/html/inc/boinc_db.inc
index cba49d4b81..d9a3d0f20d 100644
--- a/html/inc/boinc_db.inc
+++ b/html/inc/boinc_db.inc
@@ -100,7 +100,7 @@ class BoincDb extends DbConn {
static function escape_string($string) {
$db = self::get();
- return parent::base_escape_string(trim($string));
+ return $db->base_escape_string(trim($string));
}
static function error() {
$db = self::get();