From ef9894460f4607239ab3aac9c9216f64f9e4df73 Mon Sep 17 00:00:00 2001 From: coderkun Date: Tue, 29 Apr 2014 21:54:12 +0200 Subject: [PATCH] correct array if no Characters are selected for managing Characters --- controllers/CharactersController.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/CharactersController.inc b/controllers/CharactersController.inc index b179430b..cdd72c00 100644 --- a/controllers/CharactersController.inc +++ b/controllers/CharactersController.inc @@ -330,6 +330,9 @@ // Do action $selectedCharacters = $this->request->getPostParam('characters'); + if(!is_array($selectedCharacters)) { + $selectedCharacters = array(); + } if(!is_null($this->request->getPostParam('actions')) && count($this->request->getPostParam('actions')) > 0 && !is_null($this->request->getPostParam('characters')) && count($this->request->getPostParam('characters')) > 0) { $actions = $this->request->getPostParam('actions');