fixes
[platal.git] / modules / marketing.php
index 4ce614e..6543e97 100644 (file)
@@ -75,8 +75,6 @@ class MarketingModule extends PLModule
         $res = $globals->xdb->query("SELECT count(*) FROM register_mstats
                                       WHERE TO_DAYS(NOW()) - TO_DAYS(success) <= 7");
         $page->assign('nbInsMarkOK', $res->fetchOneCell());
-
-        return PL_OK;
     }
 
     function handler_private(&$page, $uid = null,
@@ -134,7 +132,7 @@ class MarketingModule extends PLModule
         }
 
         if ($action == 'insrel') {
-            require_once('marketing.inc.php');
+            require_once 'marketing.inc.php';
             if (relance($uid)) {
                 $page->trig('relance faite');
             }
@@ -162,8 +160,6 @@ class MarketingModule extends PLModule
             $page->assign('pending', $pending);
             $page->assign('relance', $relance);
         }
-
-        return PL_OK;
     }
 
     function handler_promo(&$page, $promo = null)
@@ -186,8 +182,6 @@ class MarketingModule extends PLModule
               GROUP BY  u.user_id
               ORDER BY  nom, prenom";
         $page->assign('nonins', $globals->xdb->iterator($sql, $promo));
-
-        return PL_OK;
     }
 
     function handler_public(&$page, $uid = null)
@@ -232,8 +226,6 @@ class MarketingModule extends PLModule
                 }
             }
         }
-
-        return PL_OK;
     }
 
     function handler_week(&$page, $sorting = 'per_promo')
@@ -250,8 +242,6 @@ class MarketingModule extends PLModule
                  WHERE  u.date_ins > ".date("Ymd000000", strtotime ('1 week ago'))."
               ORDER BY  u.$sort DESC";
         $page->assign('ins', $globals->xdb->iterator($sql));
-
-        return PL_OK;
     }
 
     function handler_volontaire(&$page, $promo = null)
@@ -278,8 +268,6 @@ class MarketingModule extends PLModule
                   ORDER BY  a.nom";
             $page->assign('addr', $globals->xdb->iterator($sql, $promo));
         }
-
-        return PL_OK;
     }
 
     function handler_relance(&$page)
@@ -289,6 +277,8 @@ class MarketingModule extends PLModule
         $page->changeTpl('marketing/relance.tpl');
 
         if (Post::has('relancer')) {
+            require_once 'marketing.inc.php';
+
             $res   = $globals->xdb->query("SELECT COUNT(*) FROM auth_user_md5 WHERE deces=0");
             $nbdix = $res->fetchOneCell();
 
@@ -307,8 +297,6 @@ class MarketingModule extends PLModule
                  WHERE  hash!='INSCRIT'
               ORDER BY  date DESC";
         $page->assign('relance', $globals->xdb->iterator($sql));
-
-        return PL_OK;
     }
 }