projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1c303
)
You shoudln't use a text variable like an array.
author
Michael
<heluecht@pirati.ca>
Sat, 18 Mar 2017 23:32:59 +0000
(23:32 +0000)
committer
Roland Haeder
<roland@mxchange.org>
Sun, 19 Mar 2017 00:23:34 +0000
(
01:23
+0100)
include/text.php
patch
|
blob
|
history
diff --git
a/include/text.php
b/include/text.php
index a02021e03c1c3793b953753780e2688da3a8ce4c..71a254b251ba7497620ed7f02f17aa80ae762832 100644
(file)
--- a/
include/text.php
+++ b/
include/text.php
@@
-904,10
+904,10
@@
function contact_block() {
intval($shown)
);
if (dbm::is_result($r)) {
- $contacts =
""
;
- foreach ($r AS $contact)
+ $contacts =
array()
;
+ foreach ($r AS $contact)
{
$contacts[] = $contact["id"];
-
+ }
$r = q("SELECT `id`, `uid`, `addr`, `url`, `name`, `thumb`, `network` FROM `contact` WHERE `id` IN (%s)",
dbesc(implode(",", $contacts)));