1
Hi.
My hosting provider uses php 5.1.4 & MySQL 5.0.22, so i'm trying to run latest XOOPS on this.
The system module works fine, but news 1.44 don't work at all. "submit.php" gives me completely blank page, even in debug mode. I found the place in "kernel/user.php" that seems to be a reason:
function getObjects($criteria = null, $id_as_key = false)
{
$ret = array();
$limit = $start = 0;
$sql = 'SELECT * FROM '.$this->db->prefix('users');
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 $ret;
}
while ($myrow = $this->db->fetchArray($result)) {
$user = new XoopsUser();
$user->assignVars($myrow);
if (!$id_as_key) {
-->HERE $ret[] =& $user;
} else {
-->HERE $ret[$myrow['uid']] =& $user;
}
unset($user);
}
return $ret;
}
When the rows marked are commented, page is shown (not properly of course). When uncommented - blank page.
Can anyone make this code work at PHP5?