X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/3e58a5b1d423e215a5d8e1a076ffbae8259476f3..58890a698f770e368aedf137df241bc01041e62e:/lib/MECON/NovedadesDia.php?ds=inline 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()