Explorar o código

Merge pull request #1132 from Alkarex/mysql_only_full_group_by

MySQL compatibility only_full_group_by
Alexandre Alapetite %!s(int64=10) %!d(string=hai) anos
pai
achega
f54876ac2d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Models/CategoryDAO.php

+ 1 - 1
app/Models/CategoryDAO.php

@@ -103,7 +103,7 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo implements FreshRSS_Searchable
 			     . ($details ? 'f.* ' : 'f.id, f.name, f.url, f.website, f.priority, f.error, f.cache_nbEntries, f.cache_nbUnreads ')
 			     . 'FROM `' . $this->prefix . 'category` c '
 			     . 'LEFT OUTER JOIN `' . $this->prefix . 'feed` f ON f.category=c.id '
-			     . 'GROUP BY f.id '
+			     . 'GROUP BY f.id, c_id '
 			     . 'ORDER BY c.name, f.name';
 			$stm = $this->bd->prepare($sql);
 			$stm->execute();