Explorar el Código

[HttpFoundation] removed superfluous query call (closes #2469)

Fabien Potencier hace 13 años
padre
commit
6c2f093b33

+ 0 - 1
src/Symfony/Component/HttpFoundation/SessionStorage/PdoSessionStorage.php

@@ -143,7 +143,6 @@ class PdoSessionStorage extends NativeSessionStorage
         $sql = "DELETE FROM $dbTable WHERE $dbTimeCol < (:time - $lifetime)";
 
         try {
-            $this->db->query($sql);
             $stmt = $this->db->prepare($sql);
             $stmt->bindValue(':time', time(), \PDO::PARAM_INT);
             $stmt->execute();