]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[fix] error in query to get entries and tags
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 3 Jan 2014 09:06:26 +0000 (10:06 +0100)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 3 Jan 2014 09:06:26 +0000 (10:06 +0100)
inc/poche/Database.class.php

index afe02a41e955a66e34bebf59f37129df76fd7539..d8b6385988265a2238c79f427a2b93ccbf715044 100644 (file)
@@ -337,7 +337,7 @@ class Database {
 
     public function retrieveEntriesByTag($tag_id) {
         $sql = 
-            "SELECT * FROM entries
+            "SELECT entries.* FROM entries
             LEFT JOIN tags_entries ON tags_entries.entry_id=entries.id
             WHERE tags_entries.tag_id = ?";
         $query = $this->executeQuery($sql, array($tag_id));
@@ -348,7 +348,7 @@ class Database {
 
     public function retrieveTagsByEntry($entry_id) {
         $sql = 
-            "SELECT * FROM tags
+            "SELECT tags.* FROM tags
             LEFT JOIN tags_entries ON tags_entries.tag_id=tags.id
             WHERE tags_entries.entry_id = ?";
         $query = $this->executeQuery($sql, array($entry_id));