[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10748] property: sql filter for non-members
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10748] property: sql filter for non-members |
Date: |
Mon, 04 Feb 2013 12:45:57 +0000 |
Revision: 10748
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10748
Author: sigurdne
Date: 2013-02-04 12:45:57 +0000 (Mon, 04 Feb 2013)
Log Message:
-----------
property: sql filter for non-members
Modified Paths:
--------------
trunk/property/inc/class.sotts.inc.php
Modified: trunk/property/inc/class.sotts.inc.php
===================================================================
--- trunk/property/inc/class.sotts.inc.php 2013-02-04 11:35:10 UTC (rev
10747)
+++ trunk/property/inc/class.sotts.inc.php 2013-02-04 12:45:57 UTC (rev
10748)
@@ -353,7 +353,10 @@
$filtermethod .= " {$where}
(assignedto={$user_id}";
$where = 'AND';
- $membership =
$GLOBALS['phpgw']->accounts->membership($user_id);
+ if(!$membership =
$GLOBALS['phpgw']->accounts->membership($user_id))
+ {
+ $membership = array(-1 => 0);
+ }
$filtermethod .= ' OR (assignedto IS NULL AND
group_id IN (' . implode(',',array_keys($membership)) . ')))';
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10748] property: sql filter for non-members,
Sigurd Nes <=