permitir loguear con la tabla versiones vacia

This commit is contained in:
bernat 2019-10-07 10:54:00 +02:00
parent 5b2a5901bf
commit 9dda099b41
1 changed files with 2 additions and 1 deletions

View File

@ -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();