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

Diff of /phpcompta/include/ac_common.php

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

revision 1.34 by sparkyx, Sat Aug 13 12:32:44 2005 UTC revision 1.35 by sparkyx, Sat Aug 27 21:03:06 2005 UTC
# Line 344  function getPeriodeName($p_cn,$p_id,$pos Line 344  function getPeriodeName($p_cn,$p_id,$pos
344         $pos != 'p_end')         $pos != 'p_end')
345      echo_error(__FILE__."-".__LINE__.'  UNDEFINED PERIODE');      echo_error(__FILE__."-".__LINE__.'  UNDEFINED PERIODE');
346    $ret=execSql($p_cn,"select to_char($pos,'Mon YYYY') as t from parm_periode where p_id=$p_id");    $ret=execSql($p_cn,"select to_char($pos,'Mon YYYY') as t from parm_periode where p_id=$p_id");
347    if (pg_NumRows($ret) == 0) return __FILE__.":".__LINE__." ERROR UNKNOW PERIODE";    if (pg_NumRows($ret) == 0) return null;
348    $a=pg_fetch_array($ret,0);    $a=pg_fetch_array($ret,0);
349    return $a['t'];    return $a['t'];
350  }  }

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

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