Browse Source

fix data types

main
ghost 1 year ago
parent
commit
10b08215d0
  1. 14
      src/cli/yggo/import.php

14
src/cli/yggo/import.php

@ -147,13 +147,13 @@ for ($i = 0; $i <= $total; $i++)
$index->addDocument( $index->addDocument(
[ [
'url' => $url, 'url' => $url,
'time' => $remote->timeUpdated, 'time' => (int) $remote->timeUpdated,
'code' => $remote->httpCode, 'code' => (int) $remote->httpCode,
'mime' => $remote->mime, 'size' => (int) $remote->size,
'size' => $remote->size, 'mime' => (string) $remote->mime,
'title' => $remote->title, 'title' => (string) $remote->title,
'description' => $remote->description, 'description' => (string) $remote->description,
'keywords' => $remote->keywords 'keywords' => (string) $remote->keywords
] ]
); );

Loading…
Cancel
Save