do not use empty() without write-context
This commit is contained in:
parent
2a17d65863
commit
bf169305a7
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@
|
||||||
|
|
||||||
// Do action
|
// Do action
|
||||||
$selectedCharacters = array();
|
$selectedCharacters = array();
|
||||||
if($this->request->getRequestMethod() == 'POST' && !empty($this->request->getPostParam('actions')) && !empty($this->request->getPostParam('characters')))
|
if($this->request->getRequestMethod() == 'POST' && !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');
|
$actions = $this->request->getPostParam('actions');
|
||||||
$action = array_keys($actions)[0];
|
$action = array_keys($actions)[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue