Index: /trunk/Mars/fact/plots/quality.C
===================================================================
--- /trunk/Mars/fact/plots/quality.C	(revision 17663)
+++ /trunk/Mars/fact/plots/quality.C	(revision 17664)
@@ -622,5 +622,5 @@
 }
 
-void quality(UInt_t y=0, UInt_t m=0, UInt_t d=0, const char *outpath="quality")
+int quality(UInt_t y=0, UInt_t m=0, UInt_t d=0, const char *outpath="quality")
 {
     // To get correct dates in the histogram you have to add
@@ -669,5 +669,5 @@
         TSQLResult *res = serv.Query(query);
         if (!res)
-            return kFALSE;
+            return 1;
 
         run.Set(res->GetRowCount());
@@ -748,3 +748,5 @@
 
     c->SaveAs(Form("%s/%04d%02d%02d.png", outpath, y, m, d));
-}
+
+    return 0;
+}
