1.5.7a
PHP 7.4

I have Package tracker running in 1.5.7a but I am getting a PHP error stating:
PHP Warning: Invalid argument supplied for foreach() in /home2/***/public_html/ZC157/includes/functions/functions_osh_update.php on line 206.
While there were a few other issues that were easy to resolve in functions_osh_update it appears to be this portion of code below causing the issue:
Code:
// Begin Ty Package Tracker
foreach($track_id as $id => $track) {
$osh_sql['track_id' . $id] = zen_db_input($track);
}
Will the edit to trackid below resolve this error:
Code:
// Begin Ty Package Tracker
foreach('track_id' as $id => $track) {
$osh_sql['track_id' . $id] = str_replace(" ", "", zen_db_input($track));
}
Thank You for any assistance it is greatly appreciated
Bookmarks