mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Avoiding some PHP warnings
This commit is contained in:
parent
7cec1bbfdf
commit
9f4ef7c105
2 changed files with 9 additions and 8 deletions
|
@ -269,22 +269,22 @@ class Item extends BaseObject {
|
|||
}
|
||||
|
||||
// Disable features that aren't available in several networks
|
||||
if ($item["item_network"] != "dfrn") {
|
||||
if (($item["item_network"] != "dfrn") AND isset($buttons["dislike"])) {
|
||||
unset($buttons["dislike"]);
|
||||
$tagger = '';
|
||||
}
|
||||
|
||||
if ($item["item_network"] == "feed")
|
||||
if (($item["item_network"] == "feed") AND isset($buttons["like"]))
|
||||
unset($buttons["like"]);
|
||||
|
||||
if ($item["item_network"] == "mail")
|
||||
if (($item["item_network"] == "mail") AND isset($buttons["like"]))
|
||||
unset($buttons["like"]);
|
||||
|
||||
if (($item["item_network"] == "dspr") AND ($indent == 'comment'))
|
||||
if (($item["item_network"] == "dspr") AND ($indent == 'comment') AND isset($buttons["like"]))
|
||||
unset($buttons["like"]);
|
||||
|
||||
// Facebook can like comments - but it isn't programmed in the connector yet.
|
||||
if (($item["item_network"] == "face") AND ($indent == 'comment'))
|
||||
if (($item["item_network"] == "face") AND ($indent == 'comment') AND isset($buttons["like"]))
|
||||
unset($buttons["like"]);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue