Skip to content

Commit

Permalink
Use select() instead of select("*")
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Dec 2, 2009
1 parent 94411b3 commit 87bc323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gallery/libraries/drivers/Cache/Database.php
Expand Up @@ -87,7 +87,7 @@ public function set($items, $tags=null, $lifetime=null) {
*/
public function get_tag($tags) {
$db = db::build()
->select("*")
->select()
->from("caches");
foreach ($tags as $tag) {
$db->where("tags", "LIKE", "<$tag>");
Expand Down Expand Up @@ -120,7 +120,7 @@ public function get_tag($tags) {
public function get($keys, $single=false) {
$data = null;
$result = db::build()
->select("*")
->select()
->from("caches")
->where("key", "IN", $keys)
->execute();
Expand Down

0 comments on commit 87bc323

Please sign in to comment.