вопрос
I'm trying install this module and i receive this error when send a invite for a user:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/jonh/public_html/web/engine/inc/invite.admin.functions.php on line 70
Anyone know solve the problem?
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/jonh/public_html/web/engine/inc/invite.admin.functions.php on line 70
<?php
/*
=====================================================
Registration for Invite v3.2
-----------------------------------------------------
http://www.kevagroup.ru/
-----------------------------------------------------
This code is copyrighted
=====================================================
*/
if( $config['allow_alt_url'] == "yes" ) {
$link_user = $config['http_home_url'] . "user/";
} else {
$link_user = $config['http_home_url'] . "index.php?subaction=userinfo&user=";
}
//lang
$lang_mod = array(
'mod_rfi_a_on' => "Invites to register",
'mod_rfi_a_on_t' => "Management module registration, invite, invitations control, the creation of gold invitations",
'mod_rfi_a_m1' => "General Settings",
'mod_rfi_a_m2' => "Distribution Invite",
'mod_rfi_a_m3' => "Control Invite",
'mod_rfi_a_m4' => "Add Invite",
'mod_rfi_a_p1_ok' => "Module Settings saved successfully",
'mod_rfi_a_error' => "incorrectly action",
'mod_rfi_a_ok' => "The action is completed",
'mod_rfi_a_p1_med' => "Enable the module:",
'mod_rfi_a_p1_med_t' => "Make registration Invite only.",
'mod_rfi_a_p1_ian' => "Invite a user:",
'mod_rfi_a_p1_ian_t' => "The initial number of invites a user.",
'mod_rfi_a_p1_se' => "Subject email message:",
'mod_rfi_a_p1_se_t' => "Subject email message notifying of the receipt, invite.",
'mod_rfi_a_p1_me' => "message:",
'mod_rfi_a_p1_me_t' => "The content of email messages, notifying of the receipt, invite.",
'mod_rfi_a_p1_me_t_info' => "<br><b>{%send_user%}</b> - who sent the invitation (takes just a username);<br><b>{%user_comment%}</b> - Comments Send an invite;<br><b>{%sam_invite%}</b> - the user who is invited;<br><b>{%home_url%}</b> - Your Site URL",
'mod_rfi_a_p1_sue' => "Enable sending invitations by email:",
'mod_rfi_a_p1_sue_t' => "In addition, invite the user to email notification is sent to a guest.",
'mod_rfi_a_p1_save' => "Save",
'mod_rfi_a_p1_efs_view' => "Specify the email:",
'mod_rfi_a_p1_efs_view_t' => "Be sure to specify whether the invited person email?",
'mod_rfi_a_p2_users' => "Members",
'mod_rfi_a_p2_uni' => "User/Unused invites.",
'mod_rfi_a_p2_do' => "Action",
'mod_rfi_a_p2_sti' => "Give/Delete invites.",
'mod_rfi_a_p2_sti_1' => "Give invites",
'mod_rfi_a_p2_sti_2' => "Delete invites",
'mod_rfi_a_p2_dvi' => "The number of invites",
'mod_rfi_a_p2_dvi_t' => "Give/Delete invites, and how much?",
'mod_rfi_a_p3_t1' => "invite:",
'mod_rfi_a_p3_t2' => "Email:",
'mod_rfi_a_p3_t3' => "He invited:",
'mod_rfi_a_p3_t4' => "status:",
'mod_rfi_a_p3_t5' => "The group:",
'mod_rfi_a_p3_t6' => "Powered by:",
'mod_rfi_a_p3_t7' => "Remove",
'mod_rfi_a_p3_noinvites' => "Invite all there.",
'mod_rfi_a_p3_iid' => "id",
'mod_rfi_a_p4_sie_t' => "Email the one who invite.",
'mod_rfi_a_p4_sie_y' => "Send notification to email:",
'mod_rfi_a_p4_sie_y_t' => "Will be invited to send an email message.",
'mod_rfi_a_p4_sim' => "message:",
'mod_rfi_a_p4_sim_t' => "Your message will be enclosed in the invitation.",
'mod_rfi_a_p4_send' => "Send",
'mod_rfi_a_p2_search_false' => "- No users found -",
'mod_rfi_a_p2_search_info' => "Invite username or user email.<br><b>What does it mean +?</b> This means that the user has not activated in your account,<br> but once he does, he will prescribe a number of invites.",
);
$lang = array_merge($lang,$lang_mod);
//search for users
if ($_REQUEST['action'] == "searchuser") {
require_once '../ajax/adminfunction.php';
require_once('../data/config.invite.php');
$search_res = 0;
$search_info = $db->safesql( convert_unicode($_POST['dbsearchuser'], $config['charset']) );
$db->query( "SELECT * FROM " . USERPREFIX . "_users WHERE name LIKE '%".$search_info."%' OR email LIKE '%".$search_info."%' limit 10" );
$form_search_user .= '<select class="edit" name="i_user_name" size="5" style="width:150px;">
<option disabled>User/invites</option>';
while ( $row = $db->get_row() ) {
$search_res++;
if(!$row['invites']) { $row['invites'] = "+".$c_invite['user_iu_diu_num']; }
$form_search_user .= "<option value='".$row[name]."'>".$row[name]."/".$row[invites]."</option>";
}
$form_search_user .= '</select>';
if($search_res == 0) $buffer = "<option disabled>- null -</option>"; else $buffer = $form_search_user;
echo $buffer;
}
//change the number of invites
function dituserinvite($i_st_f, $i_user_name_d_1_f, $i_num_i_f){
global $db;
$sql_result = $db->query( "SELECT * FROM " . USERPREFIX . "_users where name='$i_user_name_d_1_f'" );
$row = $db->get_row( $sql_result );
$user_invites = $row['invites'];
if($i_st_f=="i_add_i") {
$diu_num_post = $user_invites + $i_num_i_f;
} else {
$diu_num_post_test = $user_invites - $i_num_i_f;
if($diu_num_post_test<="0") {
$diu_num_post = "0";
} else {
$diu_num_post = $diu_num_post_test;
}
}
return $diu_num_post;
}
function view_answers($do) {
$f_answer = "";
switch($do)
{
case yes:
$f_answer .= "where i_status='yes'";
break;
case no:
$f_answer .= "where i_status!='yes'";
break;
}
return $f_answer;
}
function do_not_email($email) {
if(!$email) {
$answer = "<i>No.</i>";
} else {
$answer = $email;
}
return $answer;
}
//active or not
function row_i_status_func($row_i_status) {
global $link_user;
$user_page = explode("|", $row_i_status);
switch($row_i_status)
{
case yes:
$row_i_status_m = "<span style='color: green;'>Active</span>";
break;
default:
$row_i_status_m = "<span style='color: red;'>Used</span> (<a href=\"".$link_user.urlencode($user_page[1])."\" target=\"_blank\">".$user_page[1]."</a>)";
}
return $row_i_status_m;
}
?>
Anyone know solve the problem?