$value) { /* * Check the property for any modifications. */ if ($mef_info[$property] != $db_info[$property]) { // FIXME - this should loop building a query and then run the query after the loop (bad geert!) dbUpdate([$property => $mef_info[$property]], 'mefinfo', '`id` = ?', [$db_info['id']]); if ($db_info['mefIdent'] != null) { log_event('MEF Link : ' . $db_info['mefIdent'] . ' (' . preg_replace('/^mef/', '', $db_info[$property]) . ') -> ' . $mef_info[$property], $device); } } } }//end foreach } /* * Finished discovering MEF Links information. */ unset($db_info_list, $current_mefinfo); echo PHP_EOL;