From: vincent@cubedesigners.com Date: Fri, 4 Feb 2011 13:35:30 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a4f069220d763a1bf3c327748c67717cf74551ed;p=cubeextranet.git --- diff --git a/inc/ws/DAO/class.ws.dao.theme.php b/inc/ws/DAO/class.ws.dao.theme.php index f8931c018..b5e228f0b 100644 --- a/inc/ws/DAO/class.ws.dao.theme.php +++ b/inc/ws/DAO/class.ws.dao.theme.php @@ -46,7 +46,7 @@ class wsDAOTheme extends commonDAO { if (wsDroits::admin(false)) { $sql = 'SELECT * FROM themes_vue'; } else { - $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 . '))'; + $sql = 'SELECT * FROM themes_vue WHERE theme_id IN (SELECT theme FROM books WHERE proprietaire IN(' . $user->ws_rights . '))'; } $r = $this->con->select($sql . ' ' . $order); return $this->factory($r);