1
0
mirror of synced 2024-12-13 22:56:04 +03:00

fixed two typos/non-existent variables.

This commit is contained in:
gnat 2007-03-20 23:15:51 +00:00
parent 36e3b7526a
commit 04d0993a35

View File

@ -75,7 +75,7 @@ class Doctrine_Cache_Sqlite extends Doctrine_Cache_Driver implements Countable
{ {
$sql = 'INSERT INTO cache (id, data, expires) VALUES (?, ?, ?)'; $sql = 'INSERT INTO cache (id, data, expires) VALUES (?, ?, ?)';
$params = array($id, serialize($data), (time() + $lifespan)); $params = array($id, serialize($data), (time() + $lifeTime));
return (bool) $this->conn->exec($sql, $params); return (bool) $this->conn->exec($sql, $params);
} }
@ -89,7 +89,7 @@ class Doctrine_Cache_Sqlite extends Doctrine_Cache_Driver implements Countable
{ {
$sql = 'DELETE FROM cache WHERE id = ?'; $sql = 'DELETE FROM cache WHERE id = ?';
return (bool) $this->conn->exec($sql, array($md5)); return (bool) $this->conn->exec($sql, array($id));
} }
/** /**
* count * count