mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:50:12 +00:00
Quick fix PHP notices in various files
- Remove unused variables - Fix variable name typos - Use x() and defaults() to fix undefined index - Add back uninitialized variables
This commit is contained in:
parent
861c4c7474
commit
9f04017e27
9 changed files with 41 additions and 35 deletions
|
@ -330,7 +330,7 @@ class Probe
|
|||
$data["url"] = $uri;
|
||||
}
|
||||
|
||||
if ($data["photo"] != "") {
|
||||
if (x($data, "photo")) {
|
||||
$data["baseurl"] = matching_url(normalise_link($data["baseurl"]), normalise_link($data["photo"]));
|
||||
} else {
|
||||
$data["photo"] = System::baseUrl().'/images/person-175.jpg';
|
||||
|
@ -341,7 +341,7 @@ class Probe
|
|||
$data["name"] = $data["nick"];
|
||||
}
|
||||
|
||||
if ($data["name"] == "") {
|
||||
if (!x($data, "name")) {
|
||||
$data["name"] = $data["url"];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue