mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:50:11 +00:00
stronger type checking on comparisons
This commit is contained in:
parent
1105cdb065
commit
34eedb503a
19 changed files with 64 additions and 64 deletions
|
@ -172,7 +172,7 @@ function network_content(&$a, $update = 0) {
|
|||
|
||||
if(($item['parent'] == $item['item_id']) && (! $item['self'])) {
|
||||
|
||||
if($item['type'] == 'wall') {
|
||||
if($item['type'] === 'wall') {
|
||||
// I do. Put me on the left of the wall-to-wall notice.
|
||||
$owner_url = $a->contact['url'];
|
||||
$owner_photo = $a->contact['thumb'];
|
||||
|
@ -180,7 +180,7 @@ function network_content(&$a, $update = 0) {
|
|||
$template = $wallwall;
|
||||
$commentww = 'ww';
|
||||
}
|
||||
if($item['type'] == 'remote' && ($item['owner-link'] != $item['author-link'])) {
|
||||
if($item['type'] === 'remote' && ($item['owner-link'] != $item['author-link'])) {
|
||||
// Could be anybody.
|
||||
$owner_url = $item['owner-link'];
|
||||
$owner_photo = $item['owner-avatar'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue