diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2021-02-22 14:41:09 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2021-02-22 14:41:09 +0300 |
| commit | be4e7b13403666fc477d4b563ea8c075d0fd2022 (patch) | |
| tree | 38eee4a6d7a5f0c4ecc3b37f997c385559c1d2a8 /classes/api.php | |
| parent | 043ef3dad68f774598e1b172ecb0f5ea75f112af (diff) | |
fix several issues reported by phpstan
Diffstat (limited to 'classes/api.php')
| -rwxr-xr-x | classes/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php index 03eea1927..5677cb908 100755 --- a/classes/api.php +++ b/classes/api.php @@ -292,7 +292,7 @@ class API extends Handler { $sanitize_content = !isset($_REQUEST["sanitize"]) || self::_param_to_bool($_REQUEST["sanitize"]); - if ($article_ids) { + if (count($article_ids) > 0) { $article_qmarks = arr_qmarks($article_ids); |