X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9def341e72ae78b8d0cb96ce425cdfb6824b00b6..f066e7ba4d1141bad2f50e802c0911e5f76e8ef0:/WEB-INF/lib/ttGroupHelper.class.php diff --git a/WEB-INF/lib/ttGroupHelper.class.php b/WEB-INF/lib/ttGroupHelper.class.php index 6ffa6b21..d28c3067 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 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')) {