mirror of
https://github.com/friendica/friendica
synced 2025-04-27 18:30:12 +00:00
fix undeclared variables or wrong variable names (/src)
This commit is contained in:
parent
7e15a9f0f5
commit
342b9af734
8 changed files with 15 additions and 7 deletions
|
@ -66,7 +66,7 @@ class Conversation
|
|||
unset($conversation['source']);
|
||||
}
|
||||
if (!dba::update('conversation', $conversation, ['item-uri' => $conversation['item-uri']], $old_conv)) {
|
||||
logger('Conversation: update for '.$conversation['item-uri'].' from '.$conv['protocol'].' to '.$conversation['protocol'].' failed', LOGGER_DEBUG);
|
||||
logger('Conversation: update for '.$conversation['item-uri'].' from '.$old_conv['protocol'].' to '.$conversation['protocol'].' failed', LOGGER_DEBUG);
|
||||
}
|
||||
} else {
|
||||
if (!dba::insert('conversation', $conversation, true)) {
|
||||
|
|
|
@ -263,6 +263,7 @@ class Item extends BaseObject
|
|||
}
|
||||
|
||||
$arr['guid'] = notags(trim(defaults($arr, 'guid', get_guid(32, $guid_prefix))));
|
||||
/// @todo Declare $uid variable - Rabuzarus - 2018-02-12.
|
||||
$arr['uri'] = notags(trim(defaults($arr, 'uri', item_new_uri($a->get_hostname(), $uid, $arr['guid']))));
|
||||
|
||||
// Store conversation data
|
||||
|
@ -1294,6 +1295,7 @@ class Item extends BaseObject
|
|||
return;
|
||||
}
|
||||
|
||||
/// @todo Declare $r or lets remove it - Rabuzarus - 2018-02-12.
|
||||
$arr = ['item' => $item, 'user' => $u[0], 'contact' => $r[0]];
|
||||
|
||||
Addon::callHooks('tagged', $arr);
|
||||
|
|
|
@ -625,6 +625,7 @@ class Profile
|
|||
require_once 'include/bbcode.php';
|
||||
|
||||
$a = get_app();
|
||||
$o = '';
|
||||
|
||||
if (!local_user() || $a->is_mobile || $a->is_tablet) {
|
||||
return $o;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue