mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21: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
|
@ -121,9 +121,9 @@ function like_content(&$a) {
|
|||
<content>$body</content>
|
||||
</object>
|
||||
EOT;
|
||||
if($verb == 'like')
|
||||
if($verb === 'like')
|
||||
$bodyverb = t('likes');
|
||||
if($verb == 'dislike')
|
||||
if($verb === 'dislike')
|
||||
$bodyverb = t('doesn\'t like');
|
||||
|
||||
if(! isset($bodyverb))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue