diff --git a/controllers/dataforseo.ctrl.php b/controllers/dataforseo.ctrl.php index 5979c93e..928dc411 100644 --- a/controllers/dataforseo.ctrl.php +++ b/controllers/dataforseo.ctrl.php @@ -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']]; @@ -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