use Friendica\Core\Pconfig;
use Friendica\Core\System;
-use Friendica\Database\Dbm;
+use Friendica\Database\DBM;
require_once 'include/html2plain.php';
require_once 'include/datetime.php';
intval(local_user())
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
return $this->_set_extra($r);
return false;
intval($id),
intval(local_user())
);
- if (Dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
return $this->_set_extra($r)[0];
}
return null;
$notif = array();
$arr = array();
- if (Dbm::is_result($notifs)) {
+ if (DBM::is_result($notifs)) {
foreach ($notifs as $it) {
// Because we use different db tables for the notification query
intval(local_user())
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
return $r[0]['total'];
return 0;
intval($limit)
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
$notifs = $this->formatNotifs($r, $ident);
$arr = array (
intval(local_user())
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
return $r[0]['total'];
return 0;
intval($limit)
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
$notifs = $this->formatNotifs($r, $ident);
$arr = array (
intval(local_user())
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
return $r[0]['total'];
return 0;
intval($limit)
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
$notifs = $this->formatNotifs($r, $ident);
$arr = array (
intval(local_user())
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
return $r[0]['total'];
return 0;
intval($limit)
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
$notifs = $this->formatNotifs($r, $ident);
$arr = array (
intval($_SESSION['uid'])
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
return $r[0]['total'];
return 0;
intval($limit)
);
- if (Dbm::is_result($r))
+ if (DBM::is_result($r))
$notifs = $this->formatIntros($r);
$arr = array (