Remove warning

This commit is contained in:
Laurent Destailleur 2015-06-05 18:26:12 +02:00
parent 77dafcbc3b
commit 91f4fccb21

View File

@ -81,7 +81,9 @@ class DolibarrApi
// If object has lines, remove $db property // If object has lines, remove $db property
if(isset($object->lines) && count($object->lines) > 0) { if(isset($object->lines) && count($object->lines) > 0) {
for($i=0; $i < count($object->lines); $i++) { $nboflines = count($object->lines);
for ($i=0; $i < $nbofline; $i++)
{
$this->_cleanObjectDatas($object->lines[$i]); $this->_cleanObjectDatas($object->lines[$i]);
} }
} }