aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-04-14 09:21:33 +0200
committerMario Vavti <mario@mariovavti.com>2023-04-14 09:21:33 +0200
commitd8811b499d5aa2559ec13862a27f70404206e0c5 (patch)
tree5dd68237e02554aa094462fb026fc366ca607799 /include/account.php
parent20f4538db4fdfe74c060670caf46a754f856313e (diff)
downloadvolse-hubzilla-d8811b499d5aa2559ec13862a27f70404206e0c5.tar.gz
volse-hubzilla-d8811b499d5aa2559ec13862a27f70404206e0c5.tar.bz2
volse-hubzilla-d8811b499d5aa2559ec13862a27f70404206e0c5.zip
improved item_expire()
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/account.php b/include/account.php
index 98d7f00a8..a1fb0f159 100644
--- a/include/account.php
+++ b/include/account.php
@@ -1117,6 +1117,7 @@ function account_service_class_allows($aid, $property, $usage = false) {
*/
function service_class_fetch($uid, $property) {
+ $service_class = null;
if($uid == local_channel()) {
$service_class = App::$account['account_service_class'];
@@ -1127,7 +1128,7 @@ function service_class_fetch($uid, $property) {
where c.channel_account_id=a.account_id and c.channel_id= %d limit 1",
intval($uid)
);
- if($r !== false and count($r)) {
+ if($r) {
$service_class = $r[0]['service_class'];
}
}
@@ -1161,7 +1162,7 @@ function account_service_class_fetch($aid, $property) {
$r = q("select account_service_class as service_class from account where account_id = %d limit 1",
intval($aid)
);
- if($r !== false && count($r)) {
+ if($r) {
$service_class = $r[0]['service_class'];
}