Browse Source

bugfix access property on null..

andre 1 năm trước cách đây
mục cha
commit
5d5840ddd0
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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;        
     }