use Friendica\BaseObject;
use Friendica\Core\L10n;
use Friendica\Database\DBA;
-use Friendica\Database\DBM;
require_once 'boot.php';
require_once 'include/dba.php';
// access lists. What we're doing here is reviving the dead group, but old content which
// was restricted to this group may now be seen by the new group members.
$group = DBA::selectFirst('group', ['deleted'], ['id' => $gid]);
- if (DBM::is_result($group) && $group['deleted']) {
+ if (DBA::isResult($group) && $group['deleted']) {
DBA::update('group', ['deleted' => 0], ['id' => $gid]);
notice(L10n::t('A deleted group with this name was revived. Existing item permissions <strong>may</strong> apply to this group and any future members. If this is not what you intended, please create another group with a different name.') . EOL);
}
local_user()
);
- return DBA::inArray($stmt);
+ return DBA::toArray($stmt);
}
/**
}
$group = DBA::selectFirst('group', ['id'], ['uid' => $uid, 'name' => $name]);
- if (DBM::is_result($group)) {
+ if (DBA::isResult($group)) {
return $group['id'];
}
}
$group = DBA::selectFirst('group', ['uid'], ['id' => $gid]);
- if (!DBM::is_result($group)) {
+ if (!DBA::isResult($group)) {
return false;
}
// remove group from default posting lists
$user = DBA::selectFirst('user', ['def_gid', 'allow_gid', 'deny_gid'], ['uid' => $group['uid']]);
- if (DBM::is_result($user)) {
+ if (DBA::isResult($user)) {
$change = false;
if ($user['def_gid'] == $gid) {