mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-24 10:27:46 +02:00
Adjust usage of Query::setColumns()
& optimize imports
This commit is contained in:
parent
a81dfe1704
commit
d64515f5ec
@ -71,7 +71,7 @@ trait DashboardUserManager
|
||||
public static function userExist(): bool
|
||||
{
|
||||
$query = DashboardOwner::on(DBUtils::getConn())
|
||||
->columns(['id'])
|
||||
->columns('id')
|
||||
->filter(Filter::equal('username', self::getUser()->getUsername()));
|
||||
|
||||
$found = false;
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
namespace Icinga\Web\Dashboard;
|
||||
|
||||
use Icinga\Exception\ConfigurationError;
|
||||
use Icinga\Exception\Http\HttpNotFoundException;
|
||||
use Icinga\Exception\ProgrammingError;
|
||||
use Icinga\Model\Home;
|
||||
@ -14,7 +13,6 @@ use Icinga\Web\Dashboard\Common\Sortable;
|
||||
use Icinga\Util\DBUtils;
|
||||
use Icinga\Web\Dashboard\Common\WidgetState;
|
||||
use ipl\Stdlib\Filter;
|
||||
use ipl\Web\Url;
|
||||
|
||||
use function ipl\Stdlib\get_php_type;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user