- $dbdata = array(
- 'db' => &$db,
- 'tabla' => "intranet.$tabla as A, samurai.sistema as S",
- 'id' => "A.$tipo",
- 'nombre' => 'S.nombre_sistema',
- 'prepend_link' => $tipo.'?accion='.AI_MODIF.'&id=',
- 'where' => 'S.id_sistema = A.sistema',
- 'order' => 'asc',
- );
+ $dbdata =
+ array(
+ 'tabla' => "intranet.$tabla as A, samurai.sistema as S",
+ 'id' => "A.$tipo",
+ 'nombre' => 'S.nombre_sistema',
+ 'where' => 'S.id_sistema = A.sistema AND S.estado = 1',
+ )
+ + $dbdata;