summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-22 14:41:09 +0300
committerAndrew Dolgov <[email protected]>2021-02-22 14:41:09 +0300
commitbe4e7b13403666fc477d4b563ea8c075d0fd2022 (patch)
tree38eee4a6d7a5f0c4ecc3b37f997c385559c1d2a8 /classes/api.php
parent043ef3dad68f774598e1b172ecb0f5ea75f112af (diff)
fix several issues reported by phpstan
Diffstat (limited to 'classes/api.php')
-rwxr-xr-xclasses/api.php2
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);