Fix reference allocation in variable

This commit is contained in:
Benjamin Renard 2015-04-14 15:10:40 +02:00
parent dfafd88159
commit 6220c3e6d6
7 changed files with 9 additions and 9 deletions

View file

@ -48,7 +48,7 @@ class LSattr_html {
function LSattr_html ($name,$config,&$attribute) {
$this -> name = $name;
$this -> config = $config;
$this -> attribute = $attribute;
$this -> attribute =& $attribute;
return true;
}

View file

@ -47,7 +47,7 @@ class LSattr_ldap {
function LSattr_ldap ($name,$config,&$attribute) {
$this -> name = $name;
$this -> config = $config;
$this -> attribute = $attribute;
$this -> attribute =& $attribute;
return true;
}

View file

@ -63,7 +63,7 @@ class LSattribute {
function LSattribute ($name,$config,&$ldapObject) {
$this -> name = $name;
$this -> config = $config;
$this -> ldapObject = $ldapObject;
$this -> ldapObject =& $ldapObject;
$html_type = "LSattr_html_".$config['html_type'];
$ldap_type = "LSattr_ldap_".$config['ldap_type'];
LSsession :: loadLSclass($html_type);
@ -625,7 +625,7 @@ class LSattribute {
*/
function addObjectEvent($event,&$obj,$meth,$params=NULL) {
$this -> _objectEvents[$event][] = array(
'obj' => $obj,
'obj' => &$obj,
'meth' => $meth,
'params' => $params
);

View file

@ -70,7 +70,7 @@ class LSform {
else {
$this -> submit = $submit;
}
$this -> ldapObject = $ldapObject;
$this -> ldapObject =& $ldapObject;
LSsession :: loadLSclass('LSformElement');
}

View file

@ -60,8 +60,8 @@ class LSformElement {
$this -> name = $name;
$this -> label = $label;
$this -> params = $params;
$this -> form = $form;
$this -> attr_html = $attr_html;
$this -> form =& $form;
$this -> attr_html =& $attr_html;
return true;
}

View file

@ -1652,7 +1652,7 @@ class LSldapObject {
*/
function addObjectEvent($event,&$obj,$meth,$param=NULL) {
$this -> _objectEvents[$event][] = array(
'obj' => $obj,
'obj' => &$obj,
'meth' => $meth,
'param' => $param
);

View file

@ -61,7 +61,7 @@ class LSsearchEntry {
if (!LSsession :: loadLSobject($LSobject)) {
return;
}
$this -> LSsearch = $LSsearch;
$this -> LSsearch =& $LSsearch;
$this -> LSobject = $LSobject;
$this -> params = $params;
$this -> id = $id;