Prel Posted September 5, 2006 Posted September 5, 2006 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: "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 Quote
TCH-Bruce Posted September 6, 2006 Posted September 6, 2006 Have you tried un-installing the module and re-installing it? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.