PHP NOTICE (8)

ERROR:
Undefined variable: result
FILE:
/home/metrocov/domains/metrocov.nl/application/index/views/pages/search/index.php
LINE:
3

Source

                
1 <section class="Section">
2     <div class="Section-header">
3         <?php if (count($result) === 0) : ?>
4             <h2>Er zijn geen zoekresultaten gevonden</h2>
5         <?php elseif (count($result) === 1) : ?>
6             <h2>Er is <strong>1 zoekresultaat</strong> gevonden voor &#34;<?=str_replace(' ''&#34;, &#34;'$search)?>&#34;</h2>
7         <?php else : ?>
8             <h2>Er zijn <strong><?=count($result)?> zoekresultaten</strong> gevonden voor &#34;<?=str_replace(' ''&#34;, &#34;'$search)?>&#34;</h2>
9         <?php endif ?>
10     </div>
11     <div class="Wrapper Flex Flex-columns-1 Search">

Backtrace

                
showError called at /var/framework/v3/errorhandler.php on line 41
errorhandler called at /home/metrocov/domains/metrocov.nl/application/index/views/pages/search/index.php on line 3
require called at /var/framework/v3/library/controller.php on line 91
render called at /var/framework/v3/frontcontroller.php on line 14
require called at /home/metrocov/domains/metrocov.nl/public_html/index.php on line 36

Other information

                
Date 06-03-2021 03:23:46 (1614997426)
URL /zoeken
Referer null
IP 3.215.180.226