From 5407f907b8e4d2bddb835c02452ead34599ece51 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Tue, 12 Feb 2019 11:31:31 -0600 Subject: [PATCH] issue: PHP 7.2 Plugin Delete This addresses issue 4718 where deleting a plugin using PHP 7.2 throws an error. This is due to errors not being passed to uninstall which causes the "Too Few Arguments" error. --- scp/plugins.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp/plugins.php b/scp/plugins.php index 91d13c4eb..b0bd80a81 100644 --- a/scp/plugins.php +++ b/scp/plugins.php @@ -40,7 +40,7 @@ if($_POST) { case 'delete': foreach ($_POST['ids'] as $id) { if ($p = Plugin::lookup($id)) { - $p->uninstall(); + $p->uninstall($errors); } } break; -- GitLab