Update template
Comprobación antes de imprimir cines, al no haber cines da error en el xamp
This commit is contained in:
parent
8614c4b0ef
commit
8408636fa5
@ -376,14 +376,14 @@
|
||||
$names = array();
|
||||
$directions = array();
|
||||
$phones = array();
|
||||
|
||||
foreach($cinemas as $key => $value){
|
||||
$ids[$key] = $value->getId();
|
||||
$names[$key] = $value->getName();
|
||||
$directions[$key] = $value->getDirection();
|
||||
$phones[$key] = $value->getPhone();
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user