1
if (!isset($partners[$item['partner_id']])) {
    $partner = array_pop(DB::LimitQuery('partner', array(
        'condition' => Array(("id = {$item['partner_id']}")))));        
    $partners[$item['partner_id']] = $partner;      
} else {
    $partner = $partners[$item['partner_id']];
}           

The above code reports the strict standars warning on line 3. Little help please?

VOODOO
  • 21
  • 1
  • That is a mighty strange array you are creating. YOu sure you don't mean to use a key/value pair instead? – PeeHaa May 28 '14 at 16:19
  • [Look at the docs](http://php.net/array-pop) - Notice how the `$array` argument has a `&` before it? That means it expects a reference. Only variables can be references. You're giving it a function return value. Assign the return value to a variable first, then pass that. – Niet the Dark Absol May 28 '14 at 16:19
  • thanks, i figure it out – VOODOO May 28 '14 at 18:00

0 Answers0