mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
get_applied_template returns template login
This commit is contained in:
@@ -1252,7 +1252,7 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
|
|||||||
$template = '';
|
$template = '';
|
||||||
if ($this->applied_template)
|
if ($this->applied_template)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT usr_login FROM usr WHERE usr_login = :login';
|
$sql = 'SELECT usr_login FROM usr WHERE usr_id = :login';
|
||||||
$stmt = $this->appbox->get_connection()->prepare($sql);
|
$stmt = $this->appbox->get_connection()->prepare($sql);
|
||||||
$stmt->execute(array(':login' => $this->applied_template));
|
$stmt->execute(array(':login' => $this->applied_template));
|
||||||
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
Reference in New Issue
Block a user