Commit 2e32b64e6180b3f8b1b742b404bbbf04b64e4c45

Authored by Caroline Salib
1 parent a750853f
Exists in master

Corrigido problema ao editar instituição;

portabilis/ieducar#167
ieducar/intranet/include/pmieducar/clsPmieducarInstituicao.inc.php
... ... @@ -364,13 +364,13 @@ class clsPmieducarInstituicao
364 364 $gruda = ", ";
365 365 }
366 366  
367   - if (is_string($this->data_base_remanejamento)) {
  367 + if (is_string($this->data_base_remanejamento) && $this->data_base_remanejamento != '') {
368 368 $campos .= "{$gruda}data_base_remanejamento";
369 369 $valores .= "{$gruda}'{$this->data_base_remanejamento}'";
370 370 $gruda = ", ";
371 371 }
372 372  
373   - if (is_string($this->data_base_transferencia)) {
  373 + if (is_string($this->data_base_transferencia) && $this->data_base_transferencia != '') {
374 374 $campos .= "{$gruda}data_base_transferencia";
375 375 $valores .= "{$gruda}'{$this->data_base_transferencia}'";
376 376 $gruda = ", ";
... ... @@ -476,12 +476,12 @@ class clsPmieducarInstituicao
476 476 $gruda = ", ";
477 477 }
478 478  
479   - if (is_string($this->data_base_transferencia)) {
  479 + if (is_string($this->data_base_transferencia) && $this->data_base_transferencia != '') {
480 480 $set .= "{$gruda}data_base_transferencia = '{$this->data_base_transferencia}'";
481 481 $gruda = ", ";
482 482 }
483 483  
484   - if (is_string($this->data_base_remanejamento)) {
  484 + if (is_string($this->data_base_remanejamento) && $this->data_base_remanejamento != '') {
485 485 $set .= "{$gruda}data_base_remanejamento = '{$this->data_base_remanejamento}'";
486 486 $gruda = ", ";
487 487 }
... ... @@ -721,4 +721,4 @@ class clsPmieducarInstituicao
721 721 }
722 722 return '';
723 723 }
724   -}
725 724 \ No newline at end of file
  725 +}
... ...