mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
Remove/replace killme() with *exit()
This commit is contained in:
parent
df386800d3
commit
895b3abf32
75 changed files with 167 additions and 187 deletions
|
@ -171,7 +171,7 @@ class DFRN
|
|||
|
||||
if (! DBA::isResult($r)) {
|
||||
Logger::log(sprintf('No contact found for nickname=%d', $owner_nick), Logger::WARNING);
|
||||
killme();
|
||||
exit();
|
||||
}
|
||||
|
||||
$owner = $r[0];
|
||||
|
@ -207,7 +207,7 @@ class DFRN
|
|||
|
||||
if (! DBA::isResult($r)) {
|
||||
Logger::log(sprintf('No contact found for uid=%d', $owner_id), Logger::WARNING);
|
||||
killme();
|
||||
exit();
|
||||
}
|
||||
|
||||
$contact = $r[0];
|
||||
|
@ -353,7 +353,7 @@ class DFRN
|
|||
$ret = Item::select(Item::DELIVER_FIELDLIST, $condition);
|
||||
$items = Item::inArray($ret);
|
||||
if (!DBA::isResult($items)) {
|
||||
killme();
|
||||
exit();
|
||||
}
|
||||
|
||||
$item = $items[0];
|
||||
|
@ -361,7 +361,7 @@ class DFRN
|
|||
if ($item['uid'] != 0) {
|
||||
$owner = User::getOwnerDataById($item['uid']);
|
||||
if (!$owner) {
|
||||
killme();
|
||||
exit();
|
||||
}
|
||||
} else {
|
||||
$owner = ['uid' => 0, 'nick' => 'feed-item'];
|
||||
|
@ -1962,7 +1962,7 @@ class DFRN
|
|||
*/
|
||||
if (!DBA::isResult($fcontact)) {
|
||||
// Database record did not get created. Quietly give up.
|
||||
killme();
|
||||
exit();
|
||||
}
|
||||
|
||||
$fid = $r[0]["id"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue