This commit is contained in:
James Cole
2015-03-27 09:24:26 +01:00
parent 4393475af3
commit e8b58154e0

View File

@@ -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: