diff options
Diffstat (limited to 'classes/Pref_Prefs.php')
-rw-r--r-- | classes/Pref_Prefs.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/classes/Pref_Prefs.php b/classes/Pref_Prefs.php index c9eb89631..6985c49e4 100644 --- a/classes/Pref_Prefs.php +++ b/classes/Pref_Prefs.php @@ -1223,13 +1223,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")) { @@ -1546,7 +1543,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(); |