[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4780 - phpcompta/tags/rel600/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4780 - phpcompta/tags/rel600/include |
Date: |
Sat, 25 Feb 2012 15:42:01 +0100 (CET) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4780 - phpcompta/tags/rel600/include,
phpcompta-dev <=