mirror of
https://github.com/friendica/friendica
synced 2024-12-23 09:20:17 +00:00
Fixed copy&paste error
This commit is contained in:
parent
b09ffa0697
commit
4f7d42a0d3
1 changed files with 7 additions and 7 deletions
|
@ -1055,15 +1055,15 @@ class DBStructure
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self::existsTable('user') && !DBA::exists('user', ['uid' => 0])) {
|
if (self::existsTable('user') && !DBA::exists('user', ['uid' => 0])) {
|
||||||
DBA::insert('user', ['uid' => 0]);
|
$user = [
|
||||||
|
"verified" => true,
|
||||||
|
"page-flags" => User::PAGE_FLAGS_SOAPBOX,
|
||||||
|
"account-type" => User::ACCOUNT_TYPE_RELAY,
|
||||||
|
];
|
||||||
|
DBA::insert('user', $user);
|
||||||
$lastid = DBA::lastInsertId();
|
$lastid = DBA::lastInsertId();
|
||||||
if ($lastid != 0) {
|
if ($lastid != 0) {
|
||||||
$user = [
|
DBA::update('user', ['uid' => 0], ['uid' => $lastid]);
|
||||||
"verified" => true,
|
|
||||||
"page-flags" => User::PAGE_FLAGS_SOAPBOX,
|
|
||||||
"account-type" => User::ACCOUNT_TYPE_RELAY,
|
|
||||||
];
|
|
||||||
DBA::update('user', $user, ['uid' => $lastid]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue