I see these warnings when previewing a custom content type. I am using the nodeapi hook to render the preview via the VIEW operation.
Here are the warnings:
warning: uasort() [function.uasort]: The argument should be an array in /home/jinfinit/public_html/pricemixer/includes/common.inc on line 2119.
warning: Cannot use a scalar value as an array in /home/jinfinit/public_html/pricemixer/includes/common.inc on line 2150.
warning: Cannot use a scalar value as an array in /home/jinfinit/public_html/pricemixer/includes/common.inc on line 2161.
Here is the code that generates it:
//Create timestamp
$now = time();
//Array to hold item details
$node->content['itemsaledetails'] = array(
//Set item available to item quantity
'itemavailable' => $node->field_item_quantity[0]['value'],
//Set current price to starting price
'itemcurrentprice' => $node->field_item_starting_price[0]['value'],
//Set item close date
'itemclosedate' => mktime(date("H", $now), date("i", $now), date("s", $now), date("m", $now), date("d", $now) + $node->field_item_duration[0]['value'], date("Y", $now)),
//Set time left
'itemtimeleft' => timeLeft(mktime(date("H", $now), date("i", $now), date("s", $now), date("m", $now), date("d", $now) + $node->field_item_duration[0]['value'], date("Y", $now)))
);
I tracked it down to this line: