Skip to content

Commit

Permalink
fix add status
Browse files Browse the repository at this point in the history
  • Loading branch information
Anisan committed Nov 29, 2018
1 parent 13cb6c7 commit 2df50ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/app_PostTracker/app_PostTracker.class.php
Expand Up @@ -198,6 +198,7 @@ function usual(&$out) {
$status['STATUS_INFO'] = "Add track code to module"; $status['STATUS_INFO'] = "Add track code to module";
$status['TRACK_ID'] = $rec['ID']; $status['TRACK_ID'] = $rec['ID'];
$status['PROVIDER'] = -1; $status['PROVIDER'] = -1;
$status['PROVIDER_ID'] = 0;
SQLInsert("pt_status", $status); SQLInsert("pt_status", $status);
$this->addTrackToProvider($rec); $this->addTrackToProvider($rec);
$this->exec_script_newstatus($rec,""); $this->exec_script_newstatus($rec,"");
Expand Down Expand Up @@ -338,6 +339,7 @@ function archive($rec,$acrhive) {
$status['DATE_STATUS'] = date ("Y-m-d H:i:s");; $status['DATE_STATUS'] = date ("Y-m-d H:i:s");;
$status['TRACK_ID'] = $rec['ID']; $status['TRACK_ID'] = $rec['ID'];
$status['PROVIDER'] = -1; $status['PROVIDER'] = -1;
$status['PROVIDER_ID'] = 0;
$rec['ARCHIVE']=$acrhive; $rec['ARCHIVE']=$acrhive;
$provider = $this->getProvider(); $provider = $this->getProvider();
if (!$rec['ARCHIVE']) if (!$rec['ARCHIVE'])
Expand Down

0 comments on commit 2df50ae

Please sign in to comment.