Update pdf.lib.php

This commit is contained in:
Laurent Destailleur 2020-08-23 19:11:40 +02:00 committed by GitHub
parent 7eb003c684
commit b44d6744f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2132,7 +2132,7 @@ function pdf_getLinkedObjects($object,$outputlangs)
include_once DOL_DOCUMENT_ROOT.'/commande/commande.class.php';
$order = new Commande($object->db);
$ret = $order->fetch(reset($elementobject->linkedObjectsIds['commande']));
if ($ret < 1){ $order=null; }
if ($ret < 1) { $order=null; }
}
}
if (! is_object($order))