[openads-Commits] r18061 - branches/6.6.0-develop--fix-module-obj/obj

0 views
Skip to first unread message

ejpri...@users.adullact.net

unread,
Jun 26, 2024, 6:32:22 AM (3 days ago) Jun 26
to openmairi...@googlegroups.com
Author: ejpritchard
Date: 2024-06-26 12:32:19 +0200 (Wed, 26 Jun 2024)
New Revision: 18061

Modified:
branches/6.6.0-develop--fix-module-obj/obj/module.class.php
Log:
fix : PHP Fatal error: Uncaught Error: Call to a member function to_string() on null

Modified: branches/6.6.0-develop--fix-module-obj/obj/module.class.php
===================================================================
--- branches/6.6.0-develop--fix-module-obj/obj/module.class.php 2024-06-25 17:53:16 UTC (rev 18060)
+++ branches/6.6.0-develop--fix-module-obj/obj/module.class.php 2024-06-26 10:32:19 UTC (rev 18061)
@@ -91,7 +91,7 @@
public function __construct(string $dir, application $framework,
?lien_module $object_link_instance = null, ?om_dbform $object = null) {
$this->framework = $framework;
- $this->log(__METHOD__, 'object_link: '.$object_link_instance->to_string().
+ $this->log(__METHOD__, 'object_link: '.($object_link_instance ? $object_link_instance->to_string() : 'null').
', object: '.($object ? get_class($object).
'#'.$object->getVal($object->clePrimaire) : 'null'));
$this->dir = $dir;

Reply all
Reply to author
Forward
0 new messages