dbesc($recipient)
);
- if(! count($r)) {
+ if (! dbm::is_result($r)) {
logger('wallmessage: no recipient');
return;
}
$body = str_replace("\r\n","\n",$body);
$body = str_replace("\n\n","\n",$body);
-
+
$ret = send_wallmessage($user, $body, $subject, $replyto);
switch($ret){
info( t('Message sent.') . EOL );
}
-// goaway($a->get_baseurl() . '/profile/' . $user['nickname']);
-
+ goaway('profile/'.$user['nickname']);
+
}
dbesc($recipient)
);
- if(! count($r)) {
+ if (! dbm::is_result($r)) {
notice( t('No recipient.') . EOL);
logger('wallmessage: no recipient');
return;