Parcourir la source

bugfix access property on null..

andre il y a 1 an
Parent
commit
5d5840ddd0
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  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;        
     }