mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
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
This commit is contained in:
parent
3ffbce0709
commit
1278480b6e
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue