mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:10:15 +00:00
added spaces + some curly braces
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
0cd241bcbe
commit
41a36606c6
60 changed files with 1018 additions and 930 deletions
|
@ -9,9 +9,9 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
|
|||
|
||||
$a = get_app();
|
||||
|
||||
if(! $recipient) return -1;
|
||||
if (! $recipient) return -1;
|
||||
|
||||
if(! strlen($subject))
|
||||
if (! strlen($subject))
|
||||
$subject = t('[no subject]');
|
||||
|
||||
$me = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1",
|
||||
|
@ -22,7 +22,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
|
|||
intval(local_user())
|
||||
);
|
||||
|
||||
if(! (count($me) && (count($contact)))) {
|
||||
if (! (count($me) && (count($contact)))) {
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
|
|||
|
||||
// look for any existing conversation structure
|
||||
|
||||
if(strlen($replyto)) {
|
||||
if (strlen($replyto)) {
|
||||
$reply = true;
|
||||
$r = q("select convid from mail where uid = %d and ( uri = '%s' or `parent-uri` = '%s' ) limit 1",
|
||||
intval(local_user()),
|
||||
|
@ -45,7 +45,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
|
|||
$convid = $r[0]['convid'];
|
||||
}
|
||||
|
||||
if(! $convid) {
|
||||
if (! $convid) {
|
||||
|
||||
// create a new conversation
|
||||
|
||||
|
@ -78,12 +78,12 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
|
|||
$convid = $r[0]['id'];
|
||||
}
|
||||
|
||||
if(! $convid) {
|
||||
if (! $convid) {
|
||||
logger('send message: conversation not found.');
|
||||
return -4;
|
||||
}
|
||||
|
||||
if(! strlen($replyto)) {
|
||||
if (! strlen($replyto)) {
|
||||
$replyto = $convuri;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue