Code
// Update the story
if (pnModAPIFunc('News', 'admin', 'update',
array('sid' => $story['sid'],
'title' => $story['title'],
'urltitle' => $story['urltitle'],
'__CATEGORIES__' => $story['__CATEGORIES__'],
......................................
'ihome' => isset($story['ihome']) ? $story['ihome'] : 0,
'ihome' => ( $story['__CATEGORIES__'] == 10010 ) ? 0 : $story['ihome'] ,
......................................
if (pnModAPIFunc('News', 'admin', 'update',
array('sid' => $story['sid'],
'title' => $story['title'],
'urltitle' => $story['urltitle'],
'__CATEGORIES__' => $story['__CATEGORIES__'],
......................................
'ihome' => isset($story['ihome']) ? $story['ihome'] : 0,
'ihome' => ( $story['__CATEGORIES__'] == 10010 ) ? 0 : $story['ihome'] ,
......................................
But this is not working. I suppose $story['__CATEGORIES__'] should get the cat id, so I don't understand why this is not changing the ihome value.
What am I missing? Is $story['__CATEGORIES__'] not an integer? Quite new to PHP, and still figuring out how internal things work in Zikula.
Thanks in advance!
DÃ¥n
