diff --git a/include/class_periode.php b/include/class_periode.php index 548f5a072..7e192008e 100644 --- a/include/class_periode.php +++ b/include/class_periode.php @@ -331,7 +331,7 @@ class Periode { return $p_start; } function get_exercice() { - $sql="select p_exercice from parm_periode where p_id=".$this->p_id; + $sql="select p_exercice from parm_periode where p_id=".$this->id; $Res=ExecSql($this->cn,$sql); if ( pg_NumRows($Res) == 0) return null; return pg_fetch_result($Res,0,0);