|
From: Benjamin C. <bc...@us...> - 2002-05-02 13:34:44
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv2462/inc
Modified Files:
functions.php
Log Message:
Bug fix for my latest bug fix
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- functions.php 1 May 2002 12:12:17 -0000 1.21
+++ functions.php 2 May 2002 13:17:57 -0000 1.22
@@ -70,9 +70,13 @@
'status' => $querystart.' where sort_order > 0 order by sort_order',
'resolution' => $querystart.' where sort_order > 0 order by sort_order',
'project' => $perm->have_perm('Admin')
- ? $querystart." where (active > 0 or project_id in ($selected)) order by {$box}_name"
+ ? $querystart." where ".
+ ($selected ? "(active > 0 or project_id in ($selected))" : 'active > 0').
+ " order by {$box}_name"
: $querystart." where project_id not in ($restricted_projects)".
- " and (active > 0 or project_id in ($selected)) order by {$box}_name",
+ " and ".
+ ($selected ? " (active > 0 or project_id in ($selected))" : 'active > 0').
+ " order by {$box}_name",
'component' => $querystart." where project_id = $project and active = 1 order by {$box}_name",
'version' => $querystart." where project_id = $project and active = 1 order by {$box}_id desc"
);
|