mirror of https://github.com/MISP/MISP
Merge pull request #4674 from juju4/devel-globalstrict
strict typing - snuffleupagus testspull/4769/head
commit
1470d21813
|
@ -525,7 +525,7 @@ class AppController extends Controller
|
|||
|
||||
private function __convertEmailToName($email)
|
||||
{
|
||||
$name = explode('@', $email);
|
||||
$name = explode('@', (string)$email);
|
||||
$name = explode('.', $name[0]);
|
||||
foreach ($name as $key => $value) {
|
||||
$name[$key] = ucfirst($value);
|
||||
|
@ -668,7 +668,7 @@ class AppController extends Controller
|
|||
foreach ($options['paramArray'] as $p) {
|
||||
if (
|
||||
isset($options['ordered_url_params'][$p]) &&
|
||||
(!in_array(strtolower($options['ordered_url_params'][$p]), array('null', '0', false, 'false', null)))
|
||||
(!in_array(strtolower((string)$options['ordered_url_params'][$p]), array('null', '0', false, 'false', null)))
|
||||
) {
|
||||
$data[$p] = $options['ordered_url_params'][$p];
|
||||
$data[$p] = str_replace(';', ':', $data[$p]);
|
||||
|
|
Loading…
Reference in New Issue