Skip to content

Commit

Permalink
Fix: Ignore NPC only kills from zKB Fetch
Browse files Browse the repository at this point in the history
Fixed a bug causing the "Ignore NPC only deaths" setting for zKB fetch
configurations to not work at all.
  • Loading branch information
Salvoxia committed Jul 24, 2014
1 parent b69331f commit 50a1106
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/admin/admin_zkbfetch.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function getZKBApi(&$fetchConfig)
try
{
$fetchConfig->setMaxNumberOfKillsPerCycle(config::get('maxNumberOfKillsPerCycle'));
$fetchConfig->setIgnoreNpcOnlyKills(config::get('post_no_npc_only_zkb'));
$fetchConfig->setIgnoreNpcOnlyKills((boolean)(config::get('post_no_npc_only_zkb')));
$fetchConfig->processApi();
$html .= "ZKBApi: ".$fetchConfig->getUrl()."<br />\n";
$html .= count($fetchConfig->getPosted())." kills were posted and ".
Expand Down
2 changes: 1 addition & 1 deletion cron/cron_zkb.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function getZKBApi(&$fetchConfig)
try
{
$fetchConfig->setMaxNumberOfKillsPerCycle(config::get('maxNumberOfKillsPerCycle'));
$fetchConfig->setIgnoreNpcOnlyKills(config::get('post_no_npc_only_zkb'));
$fetchConfig->setIgnoreNpcOnlyKills((boolean)(config::get('post_no_npc_only_zkb')));
$fetchConfig->processApi();
$html .= "ZKBApi: ".$fetchConfig->getUrl()."<br />\n";
$html .= count($fetchConfig->getPosted())." kills were posted and ".
Expand Down

0 comments on commit 50a1106

Please sign in to comment.