1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00

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

This commit is contained in:
dima-uryvskiy 2021-06-17 17:56:21 +03:00
parent 948be17b92
commit be919ef1cc

View file

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