Author: danydb
Date: 2011-11-22 23:26:40 +0100 (Tue, 22 Nov 2011)
New Revision: 193

Modified:
   trunk/importbank/include/class_import_bank.php
Log:

Fix strict standard


Modified: trunk/importbank/include/class_import_bank.php
===================================================================
--- trunk/importbank/include/class_import_bank.php      2011-11-19 00:20:38 UTC 
(rev 192)
+++ trunk/importbank/include/class_import_bank.php      2011-11-22 22:26:40 UTC 
(rev 193)
@@ -279,7 +279,7 @@
                self::transfert_error($row->id,'Date hors des limites');
                continue;
              }
-           $err=self::is_closed($row->tp_date,$led_id);
+                   $err=self::is_closed($row->tp_date,$led_id);
            if ( $err != '')
              {
                self::transfert_error($err,'Date hors des journaux');
@@ -349,7 +349,7 @@
   /**
    *Update the row with an error message, and change is status to E
    */
-  function transfert_error($id,$message)
+  static function transfert_error($id,$message)
   {
     global $cn;
     $cn->exec_sql('update importbank.temp_bank set status=$1,tp_error_msg=$2 
where id=$3',
@@ -359,7 +359,7 @@
    * check
    * if the date is outside the defined periode
    */
-  function check_date($p_date)
+  static function check_date($p_date)
   {
     global $cn;
     $sql="select count(*) from parm_periode where p_start <= 
to_date($1,'DD.MM.YYYY') and p_end >= to_date($1,'DD.MM.YYYY') ";
@@ -371,7 +371,7 @@
    * Check if the date is in a periode and if the ledger
    * is closed or not
    */
-  function is_closed($p_date,$ledger_id)
+  static function is_closed($p_date,$ledger_id)
   {
     global $cn;
     try


_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to