Miss Mindie
Oct 28th 2008, 9:25 am
So I'm having an issue with an array. I need a way to rewrite this:
foreach($priorities as $key => $priority) {
$priorities[$key]['tasks'] = $this->getTasks($priority['priorityid'], 'a', 0) + $this->getTasks($priority['priorityid'], 'b', 0);
}
Locally I have no problem populating the array with information from both functions in this statement, but on my development server it only runs through the first function call. Ideas? What am I missing?
foreach($priorities as $key => $priority) {
$priorities[$key]['tasks'] = $this->getTasks($priority['priorityid'], 'a', 0) + $this->getTasks($priority['priorityid'], 'b', 0);
}
Locally I have no problem populating the array with information from both functions in this statement, but on my development server it only runs through the first function call. Ideas? What am I missing?