/[dolibarr]/dolibarr/htdocs/adherents/adherent.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/adherents/adherent.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by eldy, Mon Aug 15 01:03:43 2005 UTC revision 1.26 by eldy, Tue Aug 30 21:07:53 2005 UTC
# Line 21  Line 21 
21   *   *
22   * $Id$   * $Id$
23   * $Source$   * $Source$
  *  
24   */   */
25    
26  /**  /**
# Line 1326  class Adherent Line 1325  class Adherent
1325            
1326      /**      /**
1327       *      \brief      Charge indicateurs this->nbtodo et this->nbtodolate de tableau de bord       *      \brief      Charge indicateurs this->nbtodo et this->nbtodolate de tableau de bord
1328         *      \param      user        Objet user
1329       *      \return     int         <0 si ko, >0 si ok       *      \return     int         <0 si ko, >0 si ok
1330       */       */
1331      function load_board()      function load_board($user)
1332      {      {
1333          global $conf;          global $conf;
1334                    
1335            if ($user->societe_id) return -1;   // protection pour eviter appel par utilisateur externe
1336    
1337          $this->nbtodo=$this->nbtodolate=0;          $this->nbtodo=$this->nbtodolate=0;
1338          $sql = "SELECT a.rowid,".$this->db->pdate("a.datefin")." as datefin";          $sql = "SELECT a.rowid,".$this->db->pdate("a.datefin")." as datefin";
1339          $sql.= " FROM ".MAIN_DB_PREFIX."adherent as a";          $sql.= " FROM ".MAIN_DB_PREFIX."adherent as a";

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26