Commit a8d1dd21 authored by Helmo's avatar Helmo

Set a descriptive name for the return vanlue of mail_user_add();

parent 741a0891
......@@ -219,8 +219,8 @@ class remoting_mail extends remoting {
if (!isset($params['gid'])) $params['gid'] = -1;
if (!isset($params['maildir_format'])) $params['maildir_format'] = 'maildir';
$affected_rows = $this->insertQuery('../mail/form/mail_user.tform.php', $client_id, $params);
return $affected_rows;
$mailuser_id = $this->insertQuery('../mail/form/mail_user.tform.php', $client_id, $params);
return $mailuser_id;
}
//* Update mail user
......
......@@ -42,9 +42,9 @@ try {
'disablesmtp' => 'n'
);
$affected_rows = $client->mail_user_add($session_id, $client_id, $params);
$mailuser_id = $client->mail_user_add($session_id, $client_id, $params);
echo "New user: ".$affected_rows."<br>";
echo "New user: ".$mailuser_id."<br>";
if($client->logout($session_id)) {
echo 'Logged out.<br />';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment