Skip to content
Permalink
Browse files

fixes

  • Loading branch information...
Anisan committed Nov 29, 2018
1 parent 993e82c commit 13cb6c77ca86c1613df295d2ac2e14991f5848a1
@@ -441,7 +441,10 @@ function updateStatus($provider,$rec,$log=true) {
if (isset($status['PROVIDER_ID']))
$find = SQLSelectOne("SELECT * FROM pt_status WHERE TRACK_ID=".$rec['ID']." and PROVIDER_ID = '" . $status['PROVIDER_ID'] . "';");
else
{
$find = SQLSelectOne("SELECT * FROM pt_status WHERE TRACK_ID=".$rec['ID']." and DATE_STATUS = '" . DBSafe($status['DATE_STATUS']) . "';");
$status['PROVIDER_ID'] = 0;
}
if (!$find)
{
++$new_statuses;
@@ -573,7 +576,7 @@ function dbInstall($data) {
pt_status: ID int(10) unsigned NOT NULL auto_increment
pt_status: PROVIDER int(3) unsigned NOT NULL
pt_status: PROVIDER_ID int(10) unsigned NOT NULL
pt_status: PROVIDER_ID int(10) unsigned NOT NULL DEFAULT 0
pt_status: TRACK_ID int(10) NOT NULL
pt_status: STATUS_CODE text
pt_status: STATUS_INFO text
@@ -14,7 +14,7 @@ function __construct($apikey) {
$this->headers[] = "X-Authorization-Token: $apikey";
}
public function query($url, $method, $params)
public function query($url, $method, $params = null)
{
if ($this->debug)
echo 'Moyaposylka:'.$method." ".$url."<br>";

0 comments on commit 13cb6c7

Please sign in to comment.
You can’t perform that action at this time.