mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:15:55 +00:00
fix some minor issues found by code analyzer
This commit is contained in:
@@ -1212,24 +1212,6 @@ class Pref_Feeds extends Handler_Protected {
|
||||
print $error_button;
|
||||
print $inactive_button;
|
||||
|
||||
if (defined('_ENABLE_FEED_DEBUGGING')) {
|
||||
|
||||
print "<select id=\"feedActionChooser\" onchange=\"feedActionChange()\">
|
||||
<option value=\"facDefault\" selected>".__('More actions...')."</option>";
|
||||
|
||||
if (FORCE_ARTICLE_PURGE == 0) {
|
||||
print
|
||||
"<option value=\"facPurge\">".__('Manual purge')."</option>";
|
||||
}
|
||||
|
||||
print "
|
||||
<option value=\"facClear\">".__('Clear feed data')."</option>
|
||||
<option value=\"facRescore\">".__('Rescore articles')."</option>";
|
||||
|
||||
print "</select>";
|
||||
|
||||
}
|
||||
|
||||
print "</div>"; # toolbar
|
||||
|
||||
//print '</div>';
|
||||
|
||||
@@ -762,12 +762,6 @@ class Pref_Filters extends Handler_Protected {
|
||||
|
||||
function index() {
|
||||
|
||||
$sort = $_REQUEST["sort"];
|
||||
|
||||
if (!$sort || $sort == "undefined") {
|
||||
$sort = "reg_exp";
|
||||
}
|
||||
|
||||
$filter_search = $_REQUEST["search"];
|
||||
|
||||
if (array_key_exists("search", $_REQUEST)) {
|
||||
@@ -780,8 +774,6 @@ class Pref_Filters extends Handler_Protected {
|
||||
print "<div id=\"pref-filter-header\" dojoType=\"dijit.layout.ContentPane\" region=\"top\">";
|
||||
print "<div id=\"pref-filter-toolbar\" dojoType=\"dijit.Toolbar\">";
|
||||
|
||||
$filter_search = $_REQUEST["search"];
|
||||
|
||||
if (array_key_exists("search", $_REQUEST)) {
|
||||
$_SESSION["prefs_filter_search"] = $filter_search;
|
||||
} else {
|
||||
|
||||
@@ -99,7 +99,6 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
foreach (array_keys($_POST) as $pref_name) {
|
||||
|
||||
$pref_name = $pref_name;
|
||||
$value = $_POST[$pref_name];
|
||||
|
||||
if ($pref_name == 'DIGEST_PREFERRED_TIME') {
|
||||
|
||||
Reference in New Issue
Block a user