$rules = Cache::get('rules_' . local_user());
if (!isset($rules)) {
- $rules = DBA::inArray(DBA::select(
+ $rules = DBA::toArray(DBA::select(
'advancedcontentfilter_rules',
['name', 'expression', 'serialized'],
['uid' => local_user(), 'active' => true]
throw new HTTPException\UnauthorizedException(L10n::t('You must be logged in to use this method'));
}
- $rules = DBA::inArray(DBA::select('advancedcontentfilter_rules', [], ['uid' => local_user()]));
+ $rules = DBA::toArray(DBA::select('advancedcontentfilter_rules', [], ['uid' => local_user()]));
return json_encode($rules);
}