From ec812e6f85e61a72d19d214480cb466ae9bff522 Mon Sep 17 00:00:00 2001 From: humano Date: Sat, 18 Apr 2020 16:19:12 -0500 Subject: [PATCH] orden en banner --- funciones/funciones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funciones/funciones.php b/funciones/funciones.php index 3b01acc..1e88790 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -2277,7 +2277,7 @@ function banner($id,$registros,$tipo){ $advertencia ="

No tiene autorizaciĆ³n para revisar este contenido

"; return $advertencia; } -if(isset($_REQUEST['random'])){ $order = "ORDER BY RAND()"; }ELSE{$order ="ORDER BY form_datos.timestamp";} +if(isset($_REQUEST['random']) OR $tipo == 'random'){ $order = "ORDER BY RAND()"; }ELSE{$order ="ORDER BY form_datos.timestamp";} /// PRIVACIDAD if($publico[0] =='1') {} $consulta_principal = "SELECT control,id,form_id , FROM_UNIXTIME(form_datos.timestamp) as fecha FROM form_datos WHERE form_id = '$id' GROUP BY form_datos.control $order ";