Merge branch 'ticket-philea3'

This commit is contained in:
Marion Muszynski 2016-11-03 17:20:25 +01:00
commit 03f8ea2f07
2 changed files with 10 additions and 10 deletions

View File

@ -660,7 +660,7 @@ class AdminPhileaMagistor extends AdminTab {
WHERE `id_sale` IN (' . implode(', ', $id_sales) . ')
AND pm_as.`active` = 1';
foreach (Db::getInstance()->executeS($sql) as $row)
$pm_active[] = (int) $row['id_sale'];
$pm_active[(int) $row['id_sale']] = (int) $row['auto_sync_active'];
$pm_sent = array();
$sql = '

View File

@ -31,15 +31,15 @@ if ($auto_sync_sales && count($auto_sync_sales))
')){
continue;
}
Db::getInstance()->execute('
INSERT INTO `'._DB_PREFIX_.'philea_sync`
VALUES (
DEFAULT,
'.(int) $id_sale.',
3,
NOW()
)
');
// Db::getInstance()->execute('
// INSERT INTO `'._DB_PREFIX_.'philea_sync`
// VALUES (
// DEFAULT,
// '.(int) $id_sale.',
// 3,
// NOW()
// )
// ');
$sql = '
UPDATE `'._DB_PREFIX_.'philea_auto_sync`
SET `last_sent` = NOW()