Skip to content
Browse files

Coding style fixes: identation on line 48+removed trailing whitespace…

…s, added spaces around =s
  • Loading branch information...
1 parent 869bba5 commit 17700b805fad7a74e871366159b4fe1ae4c2d883 @Joe7 Joe7 committed with bharat
Showing with 5 additions and 5 deletions.
  1. +5 −5 modules/gallery/libraries/drivers/Cache/Database.php
View
10 modules/gallery/libraries/drivers/Cache/Database.php
@@ -45,15 +45,15 @@ public function set($items, $tags=null, $lifetime=null) {
$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;

0 comments on commit 17700b8

Please sign in to comment.
Something went wrong with that request. Please try again.