use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\System;
+use Friendica\Database\DBM;
function group_init(App $a) {
if (local_user()) {
intval($a->argv[1]),
intval(local_user())
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
notice(t('Group not found.') . EOL);
goaway(System::baseUrl() . '/contacts');
return; // NOTREACHED
$result = null;
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$result = group_rmv(local_user(), $r[0]['name']);
}
intval($a->argv[2]),
intval(local_user())
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$change = intval($a->argv[2]);
}
}
intval(local_user())
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
notice(t('Group not found.') . EOL);
goaway(System::baseUrl() . '/contacts');
}
intval(local_user())
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
// Format the data of the contacts who aren't in the contact group
foreach ($r as $member) {
if (! in_array($member['id'], $preselected)) {