]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 4 Feb 2011 13:35:30 +0000 (13:35 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 4 Feb 2011 13:35:30 +0000 (13:35 +0000)
inc/ws/DAO/class.ws.dao.theme.php

index f8931c0181dd0d8678409ac980df8b651dd6f6e4..b5e228f0bfa914fa2e4c4b659f513134995ac33f 100644 (file)
@@ -46,7 +46,7 @@ class wsDAOTheme extends commonDAO {
                if (wsDroits::admin(false)) {\r
                        $sql = 'SELECT * FROM themes_vue';\r
                } else {\r
-                       $sql = 'SELECT * FROM themes_vue WHERE theme_id IN (SELECT theme_id FROM books WHERE proprietaire IN(' . $user->ws_rights . ') OR proprietaire IN (' . $user->ws_rights . '))';\r
+                       $sql = 'SELECT * FROM themes_vue WHERE theme_id IN (SELECT theme FROM books WHERE proprietaire IN(' . $user->ws_rights . '))';\r
                }\r
                $r = $this->con->select($sql . ' ' . $order);\r
                return $this->factory($r);\r