From 1278480b6e487db73d39e074e5621126688d1632 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Kempapura Srinivasa Date: Tue, 25 Feb 2020 14:47:43 +0100 Subject: [PATCH] Fix 'vsprintf(): Too few arguments' in ProcessController::showAction() Before, we called printf twice because BpConfig::addError() already makes use of printf. The exception only occured for nodes that have a percent sign (%) in their name. fixes #234 --- application/controllers/ProcessController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/ProcessController.php b/application/controllers/ProcessController.php index c1a3dc8..fd5b1c6 100644 --- a/application/controllers/ProcessController.php +++ b/application/controllers/ProcessController.php @@ -110,7 +110,7 @@ class ProcessController extends Controller $missing = array_slice($missing, 0, 10); $missing[] = '...'; } - $bp->addError(sprintf('There are %d missing nodes: %s', $count, implode(', ', $missing))); + $bp->addError('There are %d missing nodes: %s', $count, implode(', ', $missing)); } $this->content()->add($this->showHints($bp)); $this->content()->add($this->showWarnings($bp));