LSrelation :: ajax_refreshList() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:52:13 +01:00
parent 4409f854cf
commit 6d16a7c5c5

View file

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