summaryrefslogtreecommitdiff
path: root/classes/Pref_Prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2024-01-13 18:29:30 +0000
committerAndrew Dolgov <[email protected]>2024-01-13 18:29:30 +0000
commit283ad4ebea9e93a97848000f38ca91b23ce883ff (patch)
tree0b9ea618b438156b3803df115afec5e34d30e3a8 /classes/Pref_Prefs.php
parentd334023267848accb339c8ec3186be2afde3b514 (diff)
parent8727fb3ba8a28da48c71bdd39166b9aeb3c3d986 (diff)
Merge branch 'feature/unused-var-cleanup' into 'master'
Clean up some unused variables. See merge request tt-rss/tt-rss!19
Diffstat (limited to 'classes/Pref_Prefs.php')
-rw-r--r--classes/Pref_Prefs.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/classes/Pref_Prefs.php b/classes/Pref_Prefs.php
index 72ec35546..5cbf3c6d1 100644
--- a/classes/Pref_Prefs.php
+++ b/classes/Pref_Prefs.php
@@ -1225,13 +1225,10 @@ class Pref_Prefs extends Handler_Protected {
$proc = proc_open("git clone " . escapeshellarg($plugin['clone_url']) . " " . $tmp_dir,
$descriptorspec, $pipes, sys_get_temp_dir());
- $status = 0;
-
if (is_resource($proc)) {
$rv["stdout"] = stream_get_contents($pipes[1]);
$rv["stderr"] = stream_get_contents($pipes[2]);
- $status = proc_close($proc);
- $rv["git_status"] = $status;
+ $rv["git_status"] = proc_close($proc);
// yeah I know about mysterious RC = -1
if (file_exists("$tmp_dir/init.php")) {
@@ -1548,7 +1545,7 @@ class Pref_Prefs extends Handler_Protected {
}
function deleteAppPasswords(): void {
- $passwords = ORM::for_table('ttrss_app_passwords')
+ ORM::for_table('ttrss_app_passwords')
->where('owner_uid', $_SESSION['uid'])
->where_in('id', $_REQUEST['ids'] ?? [])
->delete_many();