1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-21 06:41:29 +00:00

fix various issues reported by static analysis

update gitlab-ci config
This commit is contained in:
Andrew Dolgov
2017-04-26 15:29:22 +03:00
parent b49bb441f4
commit 7b55001eee
20 changed files with 142 additions and 160 deletions

View File

@@ -1557,7 +1557,7 @@
}
} // function encrypt_password
function load_filters($feed_id, $owner_uid, $action_id = false) {
function load_filters($feed_id, $owner_uid) {
$filters = array();
$cat_id = (int)getFeedCategory($feed_id);
@@ -1655,7 +1655,7 @@
return true;
}
function format_tags_string($tags, $id) {
function format_tags_string($tags) {
if (!is_array($tags) || count($tags) == 0) {
return __("no tags");
} else {
@@ -1675,7 +1675,7 @@
}
}
function format_article_labels($labels, $id) {
function format_article_labels($labels) {
if (!is_array($labels)) return '';
@@ -2484,6 +2484,9 @@
return false;
}
/**
* @SuppressWarnings(unused)
*/
function error_json($code) {
require_once "errors.php";