$id_field = $conf['id'];
$tabla = $conf['base'].'.'.$conf['tabla'];
// FIXME - ver como manejar JOINs - Ver de hacer el JOIN tambien en cargar.
- $query = "SELECT AI.*, SA.nombre_sistema as nombre, SA.desc_sistema as descripcion FROM $tabla as AI, samurai.sistema as SA WHERE SA.id_sistema = AI.sistema and SA.estado = 1";
+ $query = "
+ SELECT AI.*, SA.nombre_sistema as nombre, SA.desc_sistema as descripcion
+ FROM $tabla as AI, samurai.sistema as SA
+ WHERE SA.id_sistema = AI.sistema and SA.estado = 1";
if ($where) {
$query .= " WHERE $where";
}