/[phpcompta]/phpcompta/include/class_user.php
ViewVC logotype

Diff of /phpcompta/include/class_user.php

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

revision 1.15 by sparkyx, Tue Oct 25 13:21:14 2005 UTC revision 1.16 by sparkyx, Thu Nov 3 10:45:30 2005 UTC
# Line 225  function GetPreferences () Line 225  function GetPreferences ()
225    $Res=ExecSql($this->db,$sql);    $Res=ExecSql($this->db,$sql);
226    if (pg_NumRows($Res) == 0 ) {    if (pg_NumRows($Res) == 0 ) {
227      // default periode      // default periode
228      $sql=sprintf("insert into user_local_pref (pref_periode,pref_user)      $sql=sprintf("insert into user_local_pref (user_id,parameter_value,parameter_type)
229                   select min(p_id),'%s' from parm_periode where p_closed=false"                   select '%s',min(p_id),'PERIODE' from parm_periode where p_closed=false",
230                   , $this->id);                   $this->id);
231      $Res=ExecSql($this->db,$sql);      $Res=ExecSql($this->db,$sql);
232    
233      $l_array=$this->GetPreferences();      $l_array=$this->GetPreferences();

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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