X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/3e58a5b1d423e215a5d8e1a076ffbae8259476f3..b9f89765c404ec983b830e3bacc0d0591764e9ad:/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()