Browse Source

bugfix access property on null..

andre 1 year ago
parent
commit
5d5840ddd0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      core/UI/Widget/DataTable/DataTable.php

+ 4 - 2
core/UI/Widget/DataTable/DataTable.php

@@ -211,8 +211,10 @@ class DataTable extends BaseContainer implements \ModulesGarden\Servers\ZimbraEm
             return $this;
         }
         
-        $row->$colName = $value;
-
+        if (is_object($row))
+        {
+           $row->$colName = $value;
+        }
         return $this;        
     }