diff --git a/src/main.js b/src/main.js index 82cbe02..7522986 100755 --- a/src/main.js +++ b/src/main.js @@ -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();