mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 03:18:48 +00:00
Avoid warnings in addons (#639)
* Avoid warnings in addons * And some warnings removed * And more ... * And some more ... * Added comment * And again ... * And again ... * Partly reworked "newmemberwidget" * And more warnings ... * The next round
This commit is contained in:
parent
9ec2b9390b
commit
475299e642
12 changed files with 102 additions and 61 deletions
|
@ -138,6 +138,10 @@ function blockem_prepare_body_content_filter(\Friendica\App $a, &$hook_data)
|
|||
}
|
||||
|
||||
function blockem_display_item(&$a,&$b) {
|
||||
if (empty($b['output']['body'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(strstr($b['output']['body'],'id="blockem-wrap-'))
|
||||
$b['output']['thumb'] = $a->get_baseurl() . "/images/person-80.jpg";
|
||||
}
|
||||
|
@ -177,7 +181,7 @@ function blockem_item_photo_menu(&$a,&$b) {
|
|||
|
||||
$blocked = false;
|
||||
$author = $b['item']['author-link'];
|
||||
if(is_array($a->data['blockem'])) {
|
||||
if(!empty($a->data['blockem'])) {
|
||||
foreach($a->data['blockem'] as $bloke) {
|
||||
if(link_compare($bloke,$author)) {
|
||||
$blocked = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue