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
|
@ -733,7 +733,7 @@ function item_store($arr, $force_parent = false, $notify = false, $dontcache = f
|
|||
logger("Contact-id was missing for post ".$arr["guid"]." from user id ".$uid." - now set to ".$arr["contact-id"], LOGGER_DEBUG);
|
||||
}
|
||||
|
||||
if ($arr["gcontact-id"] == 0) {
|
||||
if (defaults($arr, "gcontact-id", 0) === 0) {
|
||||
/*
|
||||
* The gcontact should mostly behave like the contact. But is is supposed to be global for the system.
|
||||
* This means that wall posts, repeated posts, etc. should have the gcontact id of the owner.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue