mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-09 16:49:15 +00:00
fix some minor issues found by code analyzer
This commit is contained in:
@@ -65,7 +65,7 @@ class Db_Mysqli implements IDb {
|
||||
}
|
||||
|
||||
function last_error() {
|
||||
return mysqli_error();
|
||||
return mysqli_error($this->link);
|
||||
}
|
||||
|
||||
function last_query_error() {
|
||||
|
||||
@@ -118,12 +118,6 @@ class Db_Prefs {
|
||||
$user_id = sprintf("%d", $user_id);
|
||||
}
|
||||
|
||||
if ($profile) {
|
||||
$profile_qpart = "AND profile = '$profile'";
|
||||
} else {
|
||||
$profile_qpart = "AND profile IS NULL";
|
||||
}
|
||||
|
||||
if (!$profile || get_schema_version() < 63) $profile = null;
|
||||
|
||||
$type_name = "";
|
||||
|
||||
Reference in New Issue
Block a user