X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/3e58a5b1d423e215a5d8e1a076ffbae8259476f3..9aa1852b91ffebb85791293a28556e9c113c2dbf:/lib/MECON/NovedadesDia.php diff --git a/lib/MECON/NovedadesDia.php b/lib/MECON/NovedadesDia.php index aebad16..7012005 100644 --- a/lib/MECON/NovedadesDia.php +++ b/lib/MECON/NovedadesDia.php @@ -110,8 +110,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()