mirror of https://github.com/MISP/MISP
chg: [internal] Remove unused validation rule
parent
3b69b528cc
commit
a1c22e9fe5
|
@ -1951,19 +1951,6 @@ class AppModel extends Model
|
|||
return true;
|
||||
}
|
||||
|
||||
public function valueIsJsonOrNull($value)
|
||||
{
|
||||
$field = array_keys($value);
|
||||
$field = $field[0];
|
||||
if (!is_null($value[$field])) {
|
||||
$json_decoded = json_decode($value[$field]);
|
||||
if ($json_decoded === null) {
|
||||
return __('Invalid JSON.');
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function valueIsID($value)
|
||||
{
|
||||
$field = array_keys($value);
|
||||
|
|
Loading…
Reference in New Issue