diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/session/BridgeSession.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/session/BridgeSession.php b/plugins/session/BridgeSession.php index d9c3afc..841622c 100644 --- a/plugins/session/BridgeSession.php +++ b/plugins/session/BridgeSession.php @@ -10,7 +10,7 @@ class BridgeSession extends EjabberdAuthBridge { $this->table = $config['mysql']['tablename']; $this->_isuser = $this->db->prepare(sprintf('SELECT COUNT(*) FROM `%s` WHERE `username` = :user AND `created` >= :limit;', $this->table)); $this->_auth = $this->db->prepare(sprintf('DELETE FROM `%s` WHERE `username` = :user AND `secret` = :secret AND `created` >= :limit;', $this->table)); - $this->_prune = $this->db->prepare(sprintf('DELETE COUNT(*) FROM `%s` WHERE `created` < :limit;', $this->table)); + $this->_prune = $this->db->prepare(sprintf('DELETE FROM `%s` WHERE `created` < :limit;', $this->table)); } function prune() { |