Jump to content

Recommended Posts

Posted

Hello,

 

In my domain "reseller", I´m use module Liasei n Xoops for to create form´s.

Well, yesterday it was everything functioned, today nothing functions ...

Interesting that this only happens in my domain reseller, in the customers this everything ok and customer use igual xoops..

 

This is message error: :tchrocks:

"Notice: Only variable references should be returned by reference in /home/mydomain/public_html/xoopsfolder/modules/liaise/class/elements.php on line 196"

 

This is line 196 in code:

 

function &getObjects($criteria = null, $id_as_key = false){

$ret = array();

$limit = $start = 0;

$sql = 'SELECT * FROM '.$this->db_table;

if( isset($criteria) && is_subclass_of($criteria, 'criteriaelement') ){

$sql .= ' '.$criteria->renderWhere();

if( $criteria->getSort() != '' ){

$sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder();

}

$limit = $criteria->getLimit();

$start = $criteria->getStart();

}

$result = $this->db->query($sql, $limit, $start);

if( !$result ){

return false;

}

while( $myrow = $this->db->fetchArray($result) ){

$elements = new $this->obj_class();

$elements->assignVars($myrow);

if( !$id_as_key ){

$ret[] =& $elements;

}else{

$ret[$myrow['ele_id']] =& $elements;

}

unset($elements);

}

return count($ret) > 0 ? $ret : false; <<<<<---- line 196

}

 

 

Some aid please, thank´s all

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...