[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5514 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5514 - phpcompta/trunk/include |
Date: |
Sat, 19 Oct 2013 21:48:40 +0200 (CEST) |
Author: danydb
Date: 2013-10-19 21:48:39 +0200 (Sat, 19 Oct 2013)
New Revision: 5514
Modified:
phpcompta/trunk/include/class_html_input.php
Log:
Fix bug : array not set
Modified: phpcompta/trunk/include/class_html_input.php
===================================================================
--- phpcompta/trunk/include/class_html_input.php 2013-10-19 14:58:12 UTC
(rev 5513)
+++ phpcompta/trunk/include/class_html_input.php 2013-10-19 19:48:39 UTC
(rev 5514)
@@ -483,8 +483,12 @@
if (is_array($global_array[$a]) == false ) {
$r.=HtmlInput::hidden($a,$global_array [$a]);
} else {
- for ($i=0;$i<count($global_array[$a]);$i++) {
- $r.=HtmlInput::hidden($a."[]",$global_array [$a][$i]);
+ if (count($global_array[$a]) > 0)
+ {
+ foreach ($global_array[$a] as $value)
+ {
+ $r.=HtmlInput::hidden($a."[]",$value);
+ }
}
}
}
---
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] r5514 - phpcompta/trunk/include,
phpcompta-dev <=