Fix phpunit

This commit is contained in:
Laurent Destailleur 2023-03-26 15:30:51 +02:00
parent 91e680ba2a
commit 188a68a6cf

View File

@ -143,7 +143,7 @@ class DoliDBTest extends PHPUnit\Framework\TestCase
$savtype = '';
$savnull = '';
$resql = $db->DDLDescTable($db->prefix().'c_paper_format', 'code');
while ($obj = $resql->fetch_object()) {
while ($obj = $db->fetch_object($resql)) {
if ($obj->Field == 'code') {
$savtype = $obj->Type;
$savnull = $obj->Null;