Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Commit 0c53970

Browse files
committed
Fix undefined index
1 parent dcfcdf6 commit 0c53970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AlgoliaEloquentTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function _setSettings()
147147
$slaves_settings = $modelHelper->getSlavesSettings($this);
148148
$slaves = isset($settings['slaves']) ? $settings['slaves'] : [];
149149

150-
$b = true;
150+
$b = count($slaves) > 0;
151151

152152
/** @var \AlgoliaSearch\Index $index */
153153
foreach ($indices as $index) {

0 commit comments

Comments
 (0)