From 41d2982da1d1958a4b586b0d7e0b5a06f5ecfa7e Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Mon, 29 Feb 2016 13:50:01 +0100
Subject: [PATCH] Fixed issue #4

---
 bob/bio/base/database/DatabaseBob.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/bio/base/database/DatabaseBob.py b/bob/bio/base/database/DatabaseBob.py
index 31bafe5a..38d78577 100644
--- a/bob/bio/base/database/DatabaseBob.py
+++ b/bob/bio/base/database/DatabaseBob.py
@@ -325,7 +325,7 @@ class DatabaseBob (Database):
 
     files : [:py:class:`FileSet`] or something similar
       The list of file sets used to probe the model with the given model id."""
-    if model_id:
+    if model_id is not None:
       file_sets = self.database.object_sets(protocol = self.protocol, groups = group, model_ids = (model_id,), purposes = 'probe', **self.all_files_options)
     else:
       file_sets = self.database.object_sets(protocol = self.protocol, groups = group, purposes = 'probe', **self.all_files_options)
-- 
GitLab