From 1e80ec1cb0a46e5619b2936f1bf79b26697cc0cb Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Mon, 20 Aug 2012 13:53:19 +0200 Subject: [PATCH] remove sql that used inexisting table add missing namespace --- .../Controller/Prod/UserPreferences.php | 1 + lib/classes/User/Adapter.class.php | 22 ++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/lib/Alchemy/Phrasea/Controller/Prod/UserPreferences.php b/lib/Alchemy/Phrasea/Controller/Prod/UserPreferences.php index b86b0cdd49..223b2bc4ea 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/UserPreferences.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/UserPreferences.php @@ -13,6 +13,7 @@ namespace Alchemy\Phrasea\Controller\Prod; use Silex\Application; use Silex\ControllerProviderInterface; +use Symfony\Component\HttpFoundation\Request; /** * diff --git a/lib/classes/User/Adapter.class.php b/lib/classes/User/Adapter.class.php index 7aa7c71ac3..1e3ab3701b 100644 --- a/lib/classes/User/Adapter.class.php +++ b/lib/classes/User/Adapter.class.php @@ -962,20 +962,26 @@ class User_Adapter implements User_Interface, cache_cacheableInterface $stmt->execute(array(':usr_id' => $this->get_id())); $stmt->closeCursor(); - $sql = 'DELETE FROM usrlist WHERE usr_id = :usr_id'; - $stmt = $this->appbox->get_connection()->prepare($sql); - $stmt->execute(array(':usr_id' => $this->get_id())); - $stmt->closeCursor(); + /** + * @todo does usrlist not exists anymore ? + */ +// $sql = 'DELETE FROM usrlist WHERE usr_id = :usr_id'; +// $stmt = $this->appbox->get_connection()->prepare($sql); +// $stmt->execute(array(':usr_id' => $this->get_id())); +// $stmt->closeCursor(); $sql = 'DELETE FROM usr_settings WHERE usr_id = :usr_id'; $stmt = $this->appbox->get_connection()->prepare($sql); $stmt->execute(array(':usr_id' => $this->get_id())); $stmt->closeCursor(); - $sql = 'DELETE FROM usrlistusers WHERE usr_id = :usr_id'; - $stmt = $this->appbox->get_connection()->prepare($sql); - $stmt->execute(array(':usr_id' => $this->get_id())); - $stmt->closeCursor(); + /** + * @todo table usrlistusers does not exists anymore ? + */ +// $sql = 'DELETE FROM usrlistusers WHERE usr_id = :usr_id'; +// $stmt = $this->appbox->get_connection()->prepare($sql); +// $stmt->execute(array(':usr_id' => $this->get_id())); +// $stmt->closeCursor(); $sql = 'DELETE FROM ssel WHERE usr_id = :usr_id'; $stmt = $this->appbox->get_connection()->prepare($sql);