mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
remove sql that used inexisting table
add missing namespace
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user