type fixes
This commit is contained in:
@@ -64,7 +64,12 @@ class AdminNotifications implements
|
||||
|
||||
$latestRelease = $this->getLatestRelease();
|
||||
|
||||
if ($latestRelease === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($latestRelease['version'])) {
|
||||
// @todo Check the logic. WTF?
|
||||
$this->configWriter->set('latestVersion', $latestRelease['version']);
|
||||
|
||||
$this->configWriter->save();
|
||||
|
||||
@@ -294,6 +294,7 @@ class App
|
||||
|
||||
$entityManager = $this->entityManager;
|
||||
|
||||
/** @var string[] */
|
||||
$teamIdList = $user->getLinkMultipleIdList('teams');
|
||||
|
||||
$groupEmailAccountPermission = $this->acl->get('groupEmailAccountPermission');
|
||||
|
||||
@@ -98,10 +98,11 @@ class Attachment extends Record
|
||||
$contents = '';
|
||||
}
|
||||
|
||||
$attachment = $this->getEntityManager()->getEntity('Attachment');
|
||||
$attachment = $this->entityManager->getNewEntity('Attachment');
|
||||
|
||||
$attachment->set('contents', $contents);
|
||||
|
||||
$this->getEntityManager()->saveEntity($attachment);
|
||||
$this->entityManager->saveEntity($attachment);
|
||||
|
||||
return $attachment;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user