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