It looks like you're new here. If you want to get involved, click one of these buttons!
A Database Error Occurred
Error Number: 1064
Errore di sintassi nella query SQL vicino a 'AS name asc' linea 4
SELECT id, IF(display_name = "", fuel_users.email, display_name) AS name FROM (`fuel_blog_users`) LEFT JOIN `fuel_users` ON `fuel_users`.`id` = `fuel_blog_users`.`fuel_user_id` ORDER BY IF(display_name = "", `fuel_users`.`email`, `display_name)` AS name asc
Filename: /.../fuel/modules/fuel/core/MY_Model.php
Line Number: 1119
function options_list($key = 'fuel_user_id', $val = 'display_name', $where = array(), $order = 'display_name')
{
if ($key == 'id')
{
$key = $this->table_name.'.fuel_user_id';
}
if ($val == 'display_name')
{
$val = 'IF(display_name = "", fuel_users.email, display_name) AS name';
}
$this->db->join('fuel_users', 'fuel_users.id = fuel_blog_users.fuel_user_id', 'left');
$return = parent::options_list($key, $val, $where, $order);
return $return;
}
function options_list($key = 'fuel_user_id', $val = 'display_name', $where = array(), $order = 'display_name')
{
// if ($key == 'id')
// {
$key = $this->table_name.'.fuel_user_id';
// }
if ($val == 'display_name')
{
$val = 'IF(display_name = "", fuel_users.email, display_name) AS name';
}
$order = 'name ASC, display_name ASC';
$this->db->join('fuel_users', 'fuel_users.id = fuel_blog_users.fuel_user_id', 'left');
$return = parent::options_list($key, $val, $where, $order);
return $return;
}
Comments
https://github.com/daylightstudio/FUEL-CMS-Blog-Module/commit/fe24b63f626a9835df72a461eb3562ba8af62579