mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
Db: only use use'd classes
This commit is contained in:
parent
3da616aa96
commit
8a72bbf513
@ -3,6 +3,7 @@
|
||||
namespace Icinga\Module\Director;
|
||||
|
||||
use Icinga\Data\Db\DbConnection;
|
||||
use Zend_Db_Expr;
|
||||
|
||||
class Db extends DbConnection
|
||||
{
|
||||
@ -27,7 +28,7 @@ class Db extends DbConnection
|
||||
public function fetchActivityLogEntry($checksum)
|
||||
{
|
||||
if ($this->getDbType() === 'pgsql') {
|
||||
$checksum = new \Zend_Db_Expr("\\x" . bin2hex($checksum));
|
||||
$checksum = new Zend_Db_Expr("\\x" . bin2hex($checksum));
|
||||
}
|
||||
|
||||
$sql = 'SELECT * FROM director_activity_log WHERE checksum = ?';
|
||||
|
Loading…
x
Reference in New Issue
Block a user