Skip to content

Commit caa2d2c

Browse files
committed
convertido a arrays $negocios y $admin
1 parent 46dda89 commit caa2d2c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

templates/head.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
= LÓGICA DE TODO EL SISTEMA, INCLUIDO EL LOGIN =
103103
====================================================================*/
104104
$negocios = $manager::table('negocios')->where('activo', true)->get()->toArray();
105-
$admin = $manager::table('usuarios')->where('cargo', 'a')->first();
105+
$admin = (array) $manager::table('usuarios')->where('cargo', 'a')->first();
106106

107107
Scripts::push(<<<HTML
108108
<script>

templates/login.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
<?php
2727
$checked = count($negocios) === 1 ? 'checked' : '';
2828
foreach($negocios as $negocio):
29+
$negocio = (array) $negocio;
30+
2931
$url = $negocio['logo'] ? "resources/images/negocios/{$negocio['logo']}" : 'resources/images/logoNegocio.jpg';
3032
$tooltipNombreNegocio = generarTooltip($negocio['nombre']);
3133
echo <<<HTML

0 commit comments

Comments
 (0)