It's not trying to add to the $Channels array there. It's trying to add to the $Channels[$show->chanid] array. Which isn't specifically set to array(). Odd that it doesn't give you that same error on line 57, as it's doing the same thing with $Programs. Jon