Author: danydb
Date: 2014-01-09 13:29:06 +0100 (Thu, 09 Jan 2014)
New Revision: 5661
Modified:
phpcompta/tags/rel671/include/class_document.php
Log:
Bug : race condition
Modified: phpcompta/tags/rel671/include/class_document.php
===================================================================
--- phpcompta/tags/rel671/include/class_document.php 2014-01-09 12:27:09 UTC
(rev 5660)
+++ phpcompta/tags/rel671/include/class_document.php 2014-01-09 12:29:06 UTC
(rev 5661)
@@ -865,15 +865,17 @@
// check if the march exists
if (!isset(${$id}))
$r= "";
+ else
+ {
// check that something is sold
- if (${'e_march' . $counter . '_price'} != 0 && ${'e_quant'
. $counter} != 0)
- {
- $f = new Fiche($this->db);
- $f->get_by_qcode(${$id}, false);
- $r = $f->strAttribut(ATTR_DEF_NAME);
+ if (${'e_march' . $counter . '_price'} != 0 &&
${'e_quant' . $counter} != 0)
+ {
+ $f = new Fiche($this->db);
+ $f->get_by_qcode(${$id}, false);
+ $r = $f->strAttribut(ATTR_DEF_NAME);
+ } else
+ $r = "";
}
- else
- $r="";
}
else
$r=${'e_march'.$counter.'_label'};
---
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