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
Christophe Vandeplas 2018-11-21 15:55:12 +02:00
parent 51e5d9418b
commit 5701dda67b
1 changed files with 2 additions and 2 deletions

View File

@ -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();