mirror of https://github.com/MISP/MISP
fix: fixes variable initialization inconsistency in Server push
Fixes issues like: Warning (2): count(): Parameter must be an array or an object that implements Countable in [/var/www/MISP/app/Model/Server.php, line 2353]pull/3892/head
parent
51e5d9418b
commit
5701dda67b
|
@ -2335,10 +2335,10 @@ class Server extends AppModel
|
|||
$this->syncProposals($HttpSocket, $this->data, null, null, $this->Event);
|
||||
|
||||
if (!isset($successes)) {
|
||||
$successes = null;
|
||||
$successes = array();
|
||||
}
|
||||
if (!isset($fails)) {
|
||||
$fails = null;
|
||||
$fails = array();
|
||||
}
|
||||
$this->Log = ClassRegistry::init('Log');
|
||||
$this->Log->create();
|
||||
|
|
Loading…
Reference in New Issue