get_applied_template returns template login

This commit is contained in:
Romain Neutron
2012-01-06 17:52:45 +01:00
parent b0e90f0df1
commit 3b8d31eb64

View File

@@ -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);