From 9a89a921e03bca67d97921b5e36fbac655a3e678 Mon Sep 17 00:00:00 2001 From: humano Date: Fri, 26 Jul 2019 19:48:07 -0500 Subject: [PATCH] depuracion --- funciones/funciones.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/funciones/funciones.php b/funciones/funciones.php index ccae552..f8f291f 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -841,7 +841,8 @@ $xajax->registerFunction("aplicacion_configuracion"); function cadena_array($text,$tipo,$cantidad,$form,$div) { - $limpios=""; + $limpios=array(); + $plantilla=""; $compuestos=""; $array_compuestos =array(); $wordCounter =array(); @@ -952,7 +953,7 @@ if ( strlen($value)>3) {//no smaller than X and not in banned uasort($wordCounter,"cmp");//short from bigger to smaller - $keywords=""; + $keywords=array(); $cantidades=""; $count = 0; foreach ($wordCounter as $key => $value){ @@ -975,6 +976,7 @@ $nube =""; $min = min($cantidades); $max = max($cantidades); $diferencia = $max - $min; + if($diferencia <= 0){ $diferencia =1;} foreach($tags as $c=>$valor){ //foreach($wordCounter as $c=>$valor){ //$valor = $tags[0]; @@ -998,14 +1000,14 @@ foreach($tags as $c=>$valor){ $ht = str_replace(array(' '), '', $c); $limpios[] = $c; - $cant = $cantidades[$c]; + $cant = $cantidades["$c"]; $valor_relativo = round((($cant - $min) / $diferencia) * 10); $size = ($cant/4); $tag_adicional .= "$c " ; $array_prueba = print_r($wordCounter,true); if($div !=""){ $accion="xajax_buscar_datos('$c','$form','$plantilla','$div'); "; }else{$accion="";} - $nube .= "$c " ; + $nube .= "$c " ; } } } @@ -2774,7 +2776,7 @@ return $filtro; function formulario_tabla_temporal($id){ $lineas=""; - +$campos_insertar=array(); $link=Conectarse(); mysqli_set_charset($link, "utf8"); @@ -2803,7 +2805,7 @@ mysqli_set_charset($link, "utf8"); while( $row_contenido = mysqli_fetch_array( $sql_contenido ) ) { $los_campos=""; - $campos_insertar=""; + $campos_insertar=[]; foreach($id_campos as $campo_nombre){ $contenido = remplacetas('form_datos','form_id',"$id",'contenido'," id_campo ='$campo_nombre' and control ='$row_contenido[control]' ") ; $los_campos .= "$campo_nombre $contenido[0]"; @@ -6131,6 +6133,8 @@ return $resultado; function consultar_contenido_formulario($form,$registros,$pagina,$tipo,$orden,$plantilla){ + $linea_li=""; + $linea_planilla=""; if($plantilla=="") { $plantilla="landingpage";} if(isset($_SESSION['proceso'])) { $filtro_proceso ="AND proceso='$_SESSION[proceso]' ";