Commit 67302378 authored by Tizian Schmidlin's avatar Tizian Schmidlin

[BUGFIX] Improve performance by adding limits

parent 745c3584
......@@ -41,6 +41,7 @@ class ToolbarItemHook implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface
$this->users = $queryBuilder->select('*')
->from('fe_users')
->where($queryBuilder->expr()->eq('email', $queryBuilder->createNamedParameter($email, \PDO::PARAM_STR)))
->setMaxResults(15)
->execute()
->fetchAll();
} else {
......@@ -208,6 +209,7 @@ class ToolbarItemHook implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface
->where(
$queryBuilder->expr()->eq('domainName', $queryBuilder->createNamedParameter($domainArray['host'], \PDO::PARAM_STR))
)
->setMaxResults(1)
->execute()
->fetch();
} else {
......
......@@ -14,7 +14,7 @@ $EM_CONF[$_EXTKEY] = array(
'title' => 'CAB Login As',
'description' => 'Within the backend you have a button in the fe_user table and in the upper right corner to quickly login as this fe user in frontend.',
'category' => 'be',
'version' => '3.0.3',
'version' => '3.0.4',
'state' => 'stable',
'uploadfolder' => true,
'createDirs' => '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment