mirror of https://github.com/MISP/MISP
chg: [widget] remove unused var, make test pass
parent
3b651621e2
commit
245fdf452c
|
@ -18,9 +18,6 @@ class AuthenticationFailureWidget
|
|||
"absciss": "username"
|
||||
}';
|
||||
|
||||
|
||||
private $__populationData = array();
|
||||
|
||||
public function handler($user, $options = array())
|
||||
{
|
||||
$this->Event = ClassRegistry::init('Event');
|
||||
|
@ -94,7 +91,7 @@ class AuthenticationFailureWidget
|
|||
foreach ($object['Attribute'] as $attribute) {
|
||||
if (in_array($attribute['object_relation'], $validFields)) {
|
||||
if ($attribute['object_relation'] == 'total') {
|
||||
$attribute['value'] = intval($attribute['value']);
|
||||
$attribute['value'] = (int)($attribute['value']);
|
||||
}
|
||||
$temp[$attribute['object_relation']] = $attribute['value'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue