$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(array($property => mres($mef_info[$property])), 'mefinfo', '`id` = ?', array($db_info['id'])); if ($db_info['mefIdent'] != null) { log_event("MEF Link : " . mres($db_info['mefIdent']) . ' (' . preg_replace('/^mef/', '', mres($db_info[$property])) . ') -> ' . $mef_info[$property], $device); } } } }//end foreach } /* * Finished discovering MEF Links information. */ unset($db_info_list, $current_mefinfo); echo PHP_EOL;