diff options
author | Joe7 <jozsef.rnagy@site.hu> | 2010-12-28 22:28:55 +0100 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-12-28 23:14:04 -0800 |
commit | 17700b805fad7a74e871366159b4fe1ae4c2d883 (patch) | |
tree | a1322290b643bab0d97479d789123514d231ac44 | |
parent | 869bba5e132ceb960b72744fc3ebad5e6af14439 (diff) |
Coding style fixes: identation on line 48+removed trailing whitespaces, added spaces around =s
-rw-r--r-- | modules/gallery/libraries/drivers/Cache/Database.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gallery/libraries/drivers/Cache/Database.php b/modules/gallery/libraries/drivers/Cache/Database.php index 7eda5b30..2e773ca4 100644 --- a/modules/gallery/libraries/drivers/Cache/Database.php +++ b/modules/gallery/libraries/drivers/Cache/Database.php @@ -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; |