Download & Extend

warning: array_merge(): Argument #2 is not an array in /var/www/uc_verwijderingsbijdrage/sites/all/modules/uberpos/uberpos.modul

Project:UberPOS
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

after installing uberpos while there are existing uc_orders in the database, the old orders do not ge tinserted into the up_orders table.

fix 1: at installation of the tables, insert old uc_order table data into up_orders

fix 2: change:

$order = (object) array_merge((array) $order, $additions);

to
if($additions) {
  $order = (object) array_merge((array) $order, $additions);
}

Comments

#1

full error (text got cut off):
warning: array_merge(): Argument #2 is not an array in /var/www/uc_verwijderingsbijdrage/sites/all/modules/uberpos/uberpos.module on line 354.