mirror of https://github.com/MISP/MISP
Fix error handling in Server.php
according to http://php.net/manual/de/exception.getmessage.php , the parenthesis are requiredpull/3924/head
parent
083beae502
commit
e34e62efe8
|
@ -3415,7 +3415,7 @@ class Server extends AppModel
|
|||
try {
|
||||
$response = $HttpSocket->get($uri, '', $request);
|
||||
} catch (Exception $e) {
|
||||
$error = $e->getMessage;
|
||||
$error = $e->getMessage();
|
||||
}
|
||||
if (!isset($response) || $response->code != '200') {
|
||||
$this->Log = ClassRegistry::init('Log');
|
||||
|
|
Loading…
Reference in New Issue