Skip to content

Commit

Permalink
Fix php issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Oct 18, 2015
1 parent e76c2b6 commit 93e148d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/lib/Elastica/Test/Base.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<?php

namespace Elastica\Test;

use Elastica\Client;
Expand Down Expand Up @@ -82,7 +84,7 @@ protected function _createIndex($name = null, $delete = true, $shards = 1)

protected function _checkScriptInlineSetting()
{
$nodes = $this->_getClient()->getCluster()->getNodes()
$nodes = $this->_getClient()->getCluster()->getNodes();
$scriptInline = $nodes[0]->getInfo()->get('settings', 'script', 'inline');

if ($scriptInline != 'on') {
Expand Down

0 comments on commit 93e148d

Please sign in to comment.