php8.1 gogogo

This commit is contained in:
Shish
2022-10-28 01:45:35 +01:00
parent 522b57da37
commit a04bc2e7e4
67 changed files with 184 additions and 346 deletions

View File

@ -551,8 +551,8 @@ class OuroborosAPI extends Extension
if (array_key_exists(0, $data)) {
$xml->startElement($type . 's');
if ($type == 'post') {
$xml->writeAttribute('count', count($data));
$xml->writeAttribute('offset', $offset);
$xml->writeAttribute('count', (string)count($data));
$xml->writeAttribute('offset', (string)$offset);
}
if ($type == 'tag') {
$xml->writeAttribute('type', 'array');