Use logical AND function

This commit is contained in:
Andreas Steffen 2014-02-23 16:44:14 +01:00
parent 1c667bce3f
commit a21d4096e5
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ static bool policy_start(database_t *db, int session_id)
e->destroy(e);
/* if a device ID with a creation date exists, get all group memberships */
if (device_id & created)
if (device_id && created)
{
e = db->query(db,
"SELECT group_id FROM groups_members WHERE device_id = ?",