mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
PHRAS-508_acl-cache
- fix ref on pdo stmt
This commit is contained in:
@@ -1152,8 +1152,9 @@ class ACL implements cache_cacheableInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
private function try_give_access_to_base_insert(&$stmt, $base_id, $usr_id)
|
||||
private function try_give_access_to_base_insert(PDOStatement $stmt, $base_id, $usr_id)
|
||||
{
|
||||
$stmt = null;
|
||||
$inserted = false;
|
||||
try {
|
||||
$stmt->execute([':base_id' => $base_id, ':usr_id' => $usr_id]);
|
||||
@@ -1169,7 +1170,7 @@ class ACL implements cache_cacheableInterface
|
||||
return $inserted;
|
||||
}
|
||||
|
||||
private function try_give_access_to_base_update(&$stmt, $base_id, $usr_id)
|
||||
private function try_give_access_to_base_update(PDOStatement $stmt, $base_id, $usr_id)
|
||||
{
|
||||
$stmt->execute([':base_id' => $base_id, ':usr_id' => $usr_id]);
|
||||
$stmt->closeCursor();
|
||||
|
Reference in New Issue
Block a user