mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
remove sql that used inexisting table
add missing namespace
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Alchemy\Phrasea\Controller\Prod;
|
|||||||
|
|
||||||
use Silex\Application;
|
use Silex\Application;
|
||||||
use Silex\ControllerProviderInterface;
|
use Silex\ControllerProviderInterface;
|
||||||
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@@ -962,20 +962,26 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
|
|||||||
$stmt->execute(array(':usr_id' => $this->get_id()));
|
$stmt->execute(array(':usr_id' => $this->get_id()));
|
||||||
$stmt->closeCursor();
|
$stmt->closeCursor();
|
||||||
|
|
||||||
$sql = 'DELETE FROM usrlist WHERE usr_id = :usr_id';
|
/**
|
||||||
$stmt = $this->appbox->get_connection()->prepare($sql);
|
* @todo does usrlist not exists anymore ?
|
||||||
$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();
|
||||||
|
|
||||||
$sql = 'DELETE FROM usr_settings WHERE usr_id = :usr_id';
|
$sql = 'DELETE FROM usr_settings WHERE usr_id = :usr_id';
|
||||||
$stmt = $this->appbox->get_connection()->prepare($sql);
|
$stmt = $this->appbox->get_connection()->prepare($sql);
|
||||||
$stmt->execute(array(':usr_id' => $this->get_id()));
|
$stmt->execute(array(':usr_id' => $this->get_id()));
|
||||||
$stmt->closeCursor();
|
$stmt->closeCursor();
|
||||||
|
|
||||||
$sql = 'DELETE FROM usrlistusers WHERE usr_id = :usr_id';
|
/**
|
||||||
$stmt = $this->appbox->get_connection()->prepare($sql);
|
* @todo table usrlistusers does not exists anymore ?
|
||||||
$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();
|
||||||
|
|
||||||
$sql = 'DELETE FROM ssel WHERE usr_id = :usr_id';
|
$sql = 'DELETE FROM ssel WHERE usr_id = :usr_id';
|
||||||
$stmt = $this->appbox->get_connection()->prepare($sql);
|
$stmt = $this->appbox->get_connection()->prepare($sql);
|
||||||
|
Reference in New Issue
Block a user