PHP Notice - Undefined offset
Posted: Mon 05 Aug 2019 4:46 pm
I am getting this repeating error logged on my www.komokaweather.ca site
From http://www.komokaweather.ca/check-fetch ... w=versions all scripts are current.
Any suggestions?
Enjoy,
Paul
This is lines 1183 to 1087[05-Aug-2019 12:33:44 America/Toronto] PHP Notice: Undefined offset: 1 in /home/psoykkrhjuz3/public_html/komokaweather-ca/ajax-dashboard.php on line 1184
[05-Aug-2019 12:33:44 America/Toronto] PHP Notice: Undefined offset: 2 in /home/psoykkrhjuz3/public_html/komokaweather-ca/ajax-dashboard.php on line 1185
[05-Aug-2019 12:33:44 America/Toronto] PHP Notice: Undefined offset: 3 in /home/psoykkrhjuz3/public_html/komokaweather-ca/ajax-dashboard.php on line 1186
Code: Select all
function moonphase ($WDmoonage) {
preg_match_all('|(\d+)|is',$WDmoonage,$matches);
// print "<!-- matches=\n" . print_r($matches,true) . "-->\n";
Any suggestions?
Enjoy,
Paul