mirror of https://git.48k.eu/ogserver
rest: add default value to og_set_client_mode vga field
Define a default value of 788 for the vga field to assign the value from ogServer instead of modifying it through the legacy script setclientmode.master
parent
88330288e6
commit
3bfdf6b477
|
@ -1321,10 +1321,10 @@ static int og_set_client_mode(struct og_dbi *dbi, const char *mac,
|
|||
"IF(aulas.dns<>'', CONCAT(' ogdns=', aulas.dns), ''), "
|
||||
"IF(aulas.proxy<>'', CONCAT(' ogproxy=', aulas.proxy), ''), "
|
||||
"IF(entidades.ogunit=1 AND NOT centros.directorio='', CONCAT(' ogunit=', centros.directorio), ''), "
|
||||
"CASE WHEN menus.resolucion IS NULL THEN '' "
|
||||
"CASE WHEN menus.resolucion IS NULL THEN ' vga=788' "
|
||||
"WHEN menus.resolucion <= '999' THEN CONCAT(' vga=', menus.resolucion) "
|
||||
"WHEN menus.resolucion LIKE '%:%' THEN CONCAT(' video=', menus.resolucion) "
|
||||
"ELSE menus.resolucion END "
|
||||
"ELSE ' vga=788' END "
|
||||
|
||||
"FROM ordenadores "
|
||||
"JOIN aulas USING(idaula) "
|
||||
|
|
Loading…
Reference in New Issue