Skip to content

Commit 9334ae5

Browse files
authored
add isset check for response array key taskID (#965)
1 parent a14ea9b commit 9334ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/AlgoliaHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private static function setLastOperationInfo($indexName, $response)
264264
$response = $response->getBody();
265265
}
266266

267-
self::$lastTaskId = $response['taskID'];
267+
self::$lastTaskId = isset($response['taskID']) ? $response['taskID'] : null;
268268
}
269269

270270
public function saveRule($rule, $indexName, $forwardToReplicas = false)

0 commit comments

Comments
 (0)