LSrelation :: ajax_refreshList() : Fixed notice PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:52:13 +0000 (19:52 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:52:13 +0000 (19:52 +0100)
public_html/includes/class/class.LSrelation.php

index 8504efb..3601c4f 100644 (file)
@@ -192,6 +192,7 @@ class LSrelation {
                       if (method_exists($relationConf['LSobject'],$relationConf['list_function'])) {
                         $list = $objRel -> $relationConf['list_function']($object);
                         if (is_array($list)&&(!empty($list))) {
+                          $data['html']="";
                           foreach($list as $o) {
                             if (isset($relationConf['canEdit_function'])) {
                               if ($o -> $relationConf['canEdit_function']()) {