I was looking at my httpd error log and notice this error over and over again
Undefined offset: 1 in /usr/home/*****/*****/*****/*****/index.php on line 43.
I was hoping someone could look over my code and see they see any problem which would be causing this error
<?php $files = scandir('movies/');
foreach($files as $file) {
if ($file === '.' or $file === '..') continue;
$t = str_replace("-", " ", $file);
$section = explode(';', $t);
$section = explode('.', $section[1]);
$t = explode(';', $t);
$t = $t[0];
The line that is getting the error is
$section = explode('.', $section[1]);
The code is working on the site but giving an error