Author: danydb
Date: 2012-02-25 15:42:00 +0100 (Sat, 25 Feb 2012)
New Revision: 4780
Modified:
phpcompta/tags/rel600/include/class_calendar.php
Log:
Bug with calendar
Modified: phpcompta/tags/rel600/include/class_calendar.php
===================================================================
--- phpcompta/tags/rel600/include/class_calendar.php 2012-02-25 14:18:12 UTC
(rev 4779)
+++ phpcompta/tags/rel600/include/class_calendar.php 2012-02-25 14:42:00 UTC
(rev 4780)
@@ -122,10 +122,10 @@
$cn=new Database(dossier::id());
$array=$cn->get_array("select to_char(p_start,'MM') as month,
to_char(p_start,'YYYY') as year ".
" from parm_periode where
p_id=$1",array($this->default_periode));
- $this->month=$array[0]['month'];
- $this->year=$array[0]['year'];
+ $this->month=(int)$array[0]['month'];
+ $this->year=(int)$array[0]['year'];
$this->day=self::$nb_day[$this->month-1];
- if ( $this->year % 4 == 0 && $this->month=2)
+ if ( $this->year % 4 == 0 && $this->month==2)
$this->day=29;
}
/**
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev