$pages = $dao->getPagesOfBook($book_id);\r
$toUpdate = array();\r
foreach($pages as $p => $infos) {\r
- if (true || $infos['version'] < 2) {\r
+ if ($infos['version'] < 2) {\r
$toUpdate[] = $infos['document_id'];\r
}\r
}\r
\r
$toUpdate = array_unique($toUpdate);\r
foreach($toUpdate as $document_id) {\r
- fb('updateDocument', $document_id);\r
self::updateDocument($document_id);\r
}\r
\r
$i = 0;\r
foreach($liste as $id => $client) {\r
if (!is_array($client->contacts)) {\r
- fb($client);\r
continue;\r
}\r
$odd = cubeMath::isOdd($i)?' class="odd"':'';\r