mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Fix tests
This commit is contained in:
@@ -1728,14 +1728,12 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
||||
ON (g.rid_parent = r.record_id)
|
||||
WHERE rid_child = :record_id';
|
||||
|
||||
$params = array(
|
||||
':GV_site' => $this->app['conf']->get(['main', 'key'])
|
||||
, ':usr_id' => $this->app['authentication']->getUser()->get_id()
|
||||
, ':record_id' => $this->get_record_id()
|
||||
];
|
||||
|
||||
$stmt = $this->get_databox()->get_connection()->prepare($sql);
|
||||
$stmt->execute($params);
|
||||
$stmt->execute([
|
||||
':site' => $this->app['conf']->get(['main', 'key']),
|
||||
':usr_id' => $this->app['authentication']->getUser()->getId(),
|
||||
':record_id' => $this->get_record_id(),
|
||||
]);
|
||||
$rs = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
$stmt->closeCursor();
|
||||
|
||||
|
Reference in New Issue
Block a user