summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-13 17:51:26 +0300
committerAndrew Dolgov <[email protected]>2021-11-13 17:51:26 +0300
commita7983d475efb56711382bd320bb0be503dba0c93 (patch)
treeeead7a14e2f5f64156d9ccae0dfd95050fda37c9 /classes/api.php
parent77b8dc738616723bd891b09731478f7a4a77672e (diff)
fix phpstan warnings in classes/api.php
Diffstat (limited to 'classes/api.php')
-rwxr-xr-xclasses/api.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/api.php b/classes/api.php
index d2668beee..764cb04da 100755
--- a/classes/api.php
+++ b/classes/api.php
@@ -356,7 +356,7 @@ class API extends Handler {
$article['content'] = Sanitizer::sanitize(
$entry->content,
self::_param_to_bool($entry->hide_images),
- false, $entry->site_url, null, $entry->id);
+ null, $entry->site_url, null, $entry->id);
} else {
$article['content'] = $entry->content;
}
@@ -485,9 +485,9 @@ class API extends Handler {
foreach ($article_ids as $id) {
if ($assign)
- Labels::add_article($id, $label, $_SESSION["uid"]);
+ Labels::add_article((int)$id, $label, $_SESSION["uid"]);
else
- Labels::remove_article($id, $label, $_SESSION["uid"]);
+ Labels::remove_article((int)$id, $label, $_SESSION["uid"]);
++$num_updated;
@@ -756,7 +756,7 @@ class API extends Handler {
$headline_row["content"] = Sanitizer::sanitize(
$line["content"],
self::_param_to_bool($line['hide_images']),
- false, $line["site_url"], null, $line["id"]);
+ null, $line["site_url"], null, $line["id"]);
} else {
$headline_row["content"] = $line["content"];
}