X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttGroupHelper.class.php;h=44dc3e1b1d3b51070c9c9ac7f3849927c6cfcd5f;hb=15ae2165165da813912300d223c50b74f44cc1e0;hp=3fb01c604da1263cd3e1e7514953453d370b9ba3;hpb=b134135b685422ddcdc2d6856972c60ea15f661f;p=timetracker.git diff --git a/WEB-INF/lib/ttGroupHelper.class.php b/WEB-INF/lib/ttGroupHelper.class.php index 3fb01c60..44dc3e1b 100644 --- a/WEB-INF/lib/ttGroupHelper.class.php +++ b/WEB-INF/lib/ttGroupHelper.class.php @@ -36,7 +36,7 @@ class ttGroupHelper { $mdb2 = getConnection(); $sql = "select id, name, created, lang from tt_groups". - " where status = 1 and org_id is NULL or org_id = id order by id desc"; + " where status = 1 and (org_id is NULL or org_id = id) order by id desc"; $res = $mdb2->query($sql); $result = array(); if (!is_a($res, 'PEAR_Error')) {