Coding style fixes: identation on line 48+removed trailing whitespaces, added spaces around =s

This commit is contained in:
Joe7
2010-12-28 22:28:55 +01:00
parent 3c31237406
commit c5473ec4c0
@@ -45,15 +45,15 @@ class Cache_Database_Driver extends Cache_Driver {
$lifetime += time();
}
$db = Database::instance();
$db = Database::instance();
$tags = $db->escape($tags);
foreach ($items as $id => $data) {
$id = $db->escape($id);
$data = $db->escape(serialize($data));
$db->query("INSERT INTO {caches} (`key`, `tags`, `expiration`, `cache`)
VALUES ('$id', '$tags', $lifetime, '$data')
ON DUPLICATE KEY UPDATE
`tags`=VALUES(tags), `expiration`=VALUES(expiration), `cache`=VALUES(cache)");
$db->query("INSERT INTO {caches} (`key`, `tags`, `expiration`, `cache`)
VALUES ('$id', '$tags', $lifetime, '$data')
ON DUPLICATE KEY UPDATE `tags` = VALUES(tags), `expiration` = VALUES(expiration),
`cache` = VALUES(cache)");
}
return true;