permitir loguear con la tabla versiones vacia
This commit is contained in:
parent
5b2a5901bf
commit
9dda099b41
|
@ -253,7 +253,8 @@ var App = {
|
|||
|
||||
var sql = 'SELECT version FROM versiones WHERE programa = \''+ this.module +'\'';
|
||||
var rs = mysqlConn.execute(sql);
|
||||
var lastVersion = parseInt(rs.fields(0).value);
|
||||
|
||||
var lastVersion = rs.EOF ? 0 : parseInt(rs.fields(0).value);
|
||||
|
||||
rs.close();
|
||||
mysqlConn.close();
|
||||
|
|
Loading…
Reference in New Issue