fix sending from non dataobject source
authorAlan <alan@roojs.com>
Wed, 3 Aug 2022 03:03:29 +0000 (11:03 +0800)
committerAlan <alan@roojs.com>
Wed, 3 Aug 2022 03:03:29 +0000 (11:03 +0800)
Pman/Roo.php

index d22fdae..7335b3d 100644 (file)
@@ -539,7 +539,7 @@ class Pman_Roo extends Pman
                           // 'fillBlank' => 'gray', // set 
                     );
                     //die('here');
-                    if (method_exists($this->do, 'toSimpleExcelColumn')) {
+                    if (!empty($this->do) && method_exists($this->do, 'toSimpleExcelColumn')) {
                         $add = $this->do->toSimpleExcelColumn($add);
                     }