X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/56c363442764a21af0820b0e3dd6e9b771119abf..642f26bc6d0ad493da0cf4f3d967661e90e4ac8b:/lib/MECON/NovedadesDia.php?ds=sidebyside diff --git a/lib/MECON/NovedadesDia.php b/lib/MECON/NovedadesDia.php index aebad16..05cf08b 100644 --- a/lib/MECON/NovedadesDia.php +++ b/lib/MECON/NovedadesDia.php @@ -77,6 +77,7 @@ class NovedadesDia { function debioVenir() { $ret = true; + echo $this->fecha->format("%Y%m%d")."=>".count($this->novedades)."\n"; foreach($this->novedades as $novedad) { if(!( preg_match("/^10/", $novedad->codigo) @@ -110,8 +111,13 @@ class NovedadesDia { $result = $this->_db->query($query); if(DB::isError($result)) die($result->getMessage()); - if( $r = $result->fetchRow() ) + while($r = $result->fetchRow()) + { + $novedad = new Novedad(); + $novedad->codigo = $r[0]; + array_push($this->novedades, $novedad); $this->licencia = $r[0]; + } } function BuscarNovedadesTemporales()