Skip to content

Commit 4aa81d9

Browse files
authored
Merge pull request #837 from FitzwilliamMuseum/hotfix/php-errors
A few quick fixes to some errors appearing in the logs.
2 parents 1ae9224 + 2b6b2aa commit 4aa81d9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

resources/views/pages/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@section('content')
1515
@if(!empty($page['carousel_associated']))
16-
@if($page['carousel_associated'][0]['carousels_id'])
16+
@if(!empty($page['carousel_associated'][0]['carousels_id']))
1717
<div class="container-fluid">
1818
<div class="negative-padding">
1919
@include('includes.structure.carousel-pages')
@@ -86,4 +86,4 @@
8686
@section('youtube-playlist')
8787
@include('includes.social.youtube-playlist')
8888
@endsection
89-
@endif
89+
@endif

resources/views/promopage/subpage.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
if(is_array($item)) {
2020
if(count($item) > 1) {
2121
foreach($item as $node) {
22-
if($node['anchor_heading']) {
22+
if(!empty($node['anchor_heading'])) {
2323
array_push($anchor_menu, array(
2424
'label' => $node['anchor_heading'],
2525
'anchor_id' => Str::slug($node['anchor_heading'], '-')
@@ -28,7 +28,7 @@
2828
}
2929
} else {
3030
$component = $item[0];
31-
31+
3232
if(isset($component['anchor_heading'])) {
3333
array_push($anchor_menu, array(
3434
'label' => $component['anchor_heading'],
@@ -90,7 +90,7 @@
9090
{{-- <h1>This is the subpage</h1> --}}
9191

9292
@include('support.components.head')
93-
93+
9494
@include('visit.components.anchor-navigation', [
9595
'anchors' => $anchor_menu
9696
])

resources/views/support/components/faq.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
if(isset($exhibition)) {
1212
$image_source = $exhibition['exhibition_files'];
1313
}
14-
function getImageData($image_source, $image_id)
14+
function getFaqImageData($image_source, $image_id)
1515
{
1616
$image_asset = [];
1717
if (!empty($image_id)) {
@@ -63,10 +63,10 @@ function getImageData($image_source, $image_id)
6363
<div class="card-body">
6464
@if(isset($accordion_item['image']) && !empty($accordion_item['image']))
6565
@php
66-
$accordion_image = getImageData($image_source, $accordion_item['image']);
66+
$accordion_image = getFaqImageData($image_source, $accordion_item['image']);
6767
$accordion_image_src = '';
6868
$accordion_image_alt = '';
69-
69+
7070
if(!empty($accordion_image)) {
7171
$accordion_image_src = !empty($accordion_image['data']['full_url']) ? $accordion_image['data']['full_url'] : '';
7272
$accordion_image_alt = !empty($accodion_image['data']['description']) ? $accodion_image['data']['description'] : '';

resources/views/tessitura/index.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
<div class="container related-container">
3737
<div class="related-grid">
3838
@php
39-
use Illuminate\Support\Arr;
40-
$types = Arr::pluck($productions, 'FacilityDescription');
41-
$ids = Arr::pluck($productions, 'Facility');
42-
$tags = array_count_values($types);
39+
//use Illuminate\Support\Arr;
40+
//$types = Arr::pluck($productions, 'FacilityDescription');
41+
//$ids = Arr::pluck($productions, 'Facility');
42+
//$tags = array_count_values($types);
4343
usort($productions, function ($a, $b) {
4444
return strtotime($a->PerformanceDate) - strtotime($b->PerformanceDate);
4545
});

0 commit comments

Comments
 (0)