From 2d2167c1468dacf5ada314a5cb68b737c19faaab Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 20 Jul 2018 22:16:16 -0400 Subject: [PATCH] [advancedcontentfilter] Rename DBA::inArray to DBA::toArray --- advancedcontentfilter/advancedcontentfilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advancedcontentfilter/advancedcontentfilter.php b/advancedcontentfilter/advancedcontentfilter.php index 42a5ba30..37463d5d 100644 --- a/advancedcontentfilter/advancedcontentfilter.php +++ b/advancedcontentfilter/advancedcontentfilter.php @@ -119,7 +119,7 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data) $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] @@ -300,7 +300,7 @@ function advancedcontentfilter_get_rules() 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); } -- 2.39.5