Update template

Comprobación antes de imprimir cines, al no haber cines da error en el xamp
This commit is contained in:
marian1010 2021-05-06 07:44:01 +02:00
parent 8614c4b0ef
commit 8408636fa5

View File

@ -376,14 +376,14 @@
$names = array();
$directions = array();
$phones = array();
if(is_array($cinemas)){
foreach($cinemas as $key => $value){
$ids[$key] = $value->getId();
$names[$key] = $value->getName();
$directions[$key] = $value->getDirection();
$phones[$key] = $value->getPhone();
}
}
switch($this->page){
case "Panel de Administrador":
echo "<div class='row'>
@ -400,6 +400,7 @@
</thead>
<tbody>
";
if(is_array($cinemas)){
for($i = 0; $i < count($cinemas); $i++){
echo '<tr>
<td>'. $ids[$i] .'</td>
@ -427,6 +428,7 @@
</tr>
';
}
}
echo'</tbody>
</table>
</div>