mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 19:01:58 +00:00
Bug fix.
This commit is contained in:
@@ -80,7 +80,8 @@ class FireflyValidator extends Validator
|
|||||||
public function validateUniqueAccountForUser($attribute, $value, $parameters)
|
public function validateUniqueAccountForUser($attribute, $value, $parameters)
|
||||||
{
|
{
|
||||||
// get account type from data, we must have this:
|
// get account type from data, we must have this:
|
||||||
$validTypes = [array_keys(Config::get('firefly.subTitlesByIdentifier'))];
|
$validTypes = array_keys(Config::get('firefly.subTitlesByIdentifier'));
|
||||||
|
|
||||||
|
|
||||||
$type = isset($this->data['what']) && in_array($this->data['what'],$validTypes) ? $this->data['what'] : null;
|
$type = isset($this->data['what']) && in_array($this->data['what'],$validTypes) ? $this->data['what'] : null;
|
||||||
// some fallback:
|
// some fallback:
|
||||||
|
Reference in New Issue
Block a user