Skip to content

Commit

Permalink
4.8.0 DF quick fix fro cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
sendtogeo committed Nov 28, 2020
1 parent e1006ab commit 2e0fd82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/dataforseo.ctrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ function __getSERPResults($keywordInfo, $showAll = false, $seId = false, $cron =
$countryCtrl = new CountryController();
$countryList = $countryCtrl->__getAllCountryAsList();

$reportCtrler = new ReportController();

// set country name as location
if (!empty($keywordInfo['country_code'])) {
$keywordInfo['location_name'] = $countryList[$keywordInfo['country_code']];
Expand Down Expand Up @@ -203,7 +205,7 @@ function __getSERPResults($keywordInfo, $showAll = false, $seId = false, $cron =

// to update cron that report executed for akeyword on a search engine
if ($cron) {
$this->saveCronTrackInfo($keywordInfo['id'], $seInfoId, $time);
$reportCtrler->saveCronTrackInfo($keywordInfo['id'], $seInfoId, $time);
}

// verify results array having search results
Expand Down

0 comments on commit 2e0fd82

Please sign in to comment.