From d1e9613709e9e3d340abbea1821af49a689a3ffd Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 27 May 2013 11:09:40 +0000 Subject: #601: Si no se obtiene código de partición, asignar a 0 ({{{EMPTY}}}). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@3828 a21b9725-9963-47de-94b9-378ad31fedc9 --- sources/ogAdmServer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 39a4d26..521ac0e 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -747,8 +747,12 @@ BOOLEAN actualizaConfiguracion(Database db, Table tbl, char* cfg, int ido) splitCadena(ptrDual, ptrCfg[1], '='); par = ptrDual[1]; // Número de partición - splitCadena(ptrDual, ptrCfg[2], '='); - cpt = ptrDual[1]; // Código de partición + k=splitCadena(ptrDual, ptrCfg[2], '='); + if(k==2){ + cpt = ptrDual[1]; // Código de partición + }else{ + cpt = "0"; + } k=splitCadena(ptrDual, ptrCfg[3], '='); if(k==2){ -- cgit v1.2.3-18-g5258