1
0
mirror of synced 2025-01-18 17:01:41 +03:00

Fix 'Warning: array_flip(): Can only flip STRING and INTEGER values'

This commit is contained in:
Dima Uryvskiy 2021-06-18 12:46:18 +03:00 committed by GitHub
parent 948be17b92
commit e1df68f209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,6 +187,9 @@ if ( ! class_exists( 'WC_Retailcrm_History' ) ) :
protected function ordersHistory($date, $sinceId) protected function ordersHistory($date, $sinceId)
{ {
$filter = array('startDate' => $date); $filter = array('startDate' => $date);
unset($this->retailcrmSettings['client_roles']);
$options = array_flip(array_filter($this->retailcrmSettings)); $options = array_flip(array_filter($this->retailcrmSettings));
if ($sinceId) { if ($sinceId) {