https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
521d4b0
)
Undefined variable
author
Pierre Rudloff
<contact@rudloff.pro>
Sat, 23 Dec 2017 00:30:50 +0000
(
01:30
+0100)
committer
Pierre Rudloff
<contact@rudloff.pro>
Sat, 23 Dec 2017 00:31:29 +0000
(
01:31
+0100)
include/api.php
patch
|
blob
|
history
diff --git
a/include/api.php
b/include/api.php
index
c9c227d
..
d7e383d
100644
(file)
--- a/
include/api.php
+++ b/
include/api.php
@@
-3163,10
+3163,10
@@
function api_statuses_f($qtype)
return false;
}
+ $sql_extra = '';
if ($qtype == 'friends') {
$sql_extra = sprintf(" AND ( `rel` = %d OR `rel` = %d ) ", intval(CONTACT_IS_SHARING), intval(CONTACT_IS_FRIEND));
- }
- if ($qtype == 'followers') {
+ } elseif ($qtype == 'followers') {
$sql_extra = sprintf(" AND ( `rel` = %d OR `rel` = %d ) ", intval(CONTACT_IS_FOLLOWER), intval(CONTACT_IS_FRIEND));
}