$photo = $parms["photo"];
// Escape the entire array
- DBA::esc_array($parms);
+ DBA::escapeArray($parms);
// Create a contact record on our site for the other person
$r = q("INSERT INTO `contact` ( `uid`, `created`,`url`, `nurl`, `addr`, `name`, `nick`, `photo`, `site-pubkey`,
$parms['issued-id'] = $issued_id;
$photo = $parms["photo"];
- DBA::esc_array($parms);
+ DBA::escapeArray($parms);
$r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `nurl`, `addr`, `name`, `nick`, `issued-id`, `photo`, `site-pubkey`,
`request`, `confirm`, `notify`, `poll`, `poco`, `network`, `blocked`, `pending` )
VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d )",
* @param boolean $add_quotation add quotation marks for string values
* @return void
*/
- private static function esc_array_callback(&$value, $key, $add_quotation)
+ private static function escapeArrayCallback(&$value, $key, $add_quotation)
{
if (!$add_quotation) {
if (is_bool($value)) {
* @param boolean $add_quotation add quotation marks for string values
* @return void
*/
- public static function esc_array(&$arr, $add_quotation = false)
+ public static function escapeArray(&$arr, $add_quotation = false)
{
- array_walk($arr, 'self::esc_array_callback', $add_quotation);
+ array_walk($arr, 'self::escapeArrayCallback', $add_quotation);
}
}