diff --git a/vimeo.php b/vimeo.php
index b845db2..507ff47 100644
--- a/vimeo.php
+++ b/vimeo.php
@@ -478,11 +478,11 @@ public function upload($file_path, $use_multiple_chunks = false, $chunk_temp_dir
// Make sure our file sizes match up
foreach ($verify->ticket->chunks as $chunk_check) {
- $chunk = $chunks[$chunk_check->id];
+ $chunk = $chunks[$chunk_check['id']];
- if ($chunk['size'] != $chunk_check->size) {
+ if ($chunk['size'] != $chunk_check['size']) {
// size incorrect, uh oh
- echo "Chunk {$chunk_check->id} is actually {$chunk['size']} but uploaded as {$chunk_check->size}
";
+ echo "Chunk {$chunk_check['id']} is actually {$chunk['size']} but uploaded as {$chunk_check['size']}
";
}
}