mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 00:55:55 +00:00
support mysqli when available
This commit is contained in:
@@ -20,6 +20,8 @@ class Db_Mysql implements IDb {
|
||||
}
|
||||
|
||||
function escape_string($s, $strip_tags = true) {
|
||||
if ($strip_tags) $s = strip_tags($s);
|
||||
|
||||
return mysql_real_escape_string($s, $this->link);
|
||||
}
|
||||
|
||||
@@ -54,7 +56,7 @@ class Db_Mysql implements IDb {
|
||||
}
|
||||
|
||||
function last_error() {
|
||||
return mysql_affected_rows($this->link);
|
||||
return mysql_error();
|
||||
}
|
||||
|
||||
function init() {
|
||||
|
||||
Reference in New Issue
Block a user