diff options
| author | Lester Caine <lester@lsces.co.uk> | 2008-07-29 18:05:00 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2008-07-29 18:05:00 +0000 |
| commit | 2c5d24448536c50241c02b96adfe8c8e3dba9661 (patch) | |
| tree | a7197a1d5294b95fd0ceb2916304b09f2d62dbf1 /menu_items.php | |
| parent | 3349a7ff28bdbe6b31f8941e63148fe408a69d43 (diff) | |
| download | nexus-2c5d24448536c50241c02b96adfe8c8e3dba9661.tar.gz nexus-2c5d24448536c50241c02b96adfe8c8e3dba9661.tar.bz2 nexus-2c5d24448536c50241c02b96adfe8c8e3dba9661.zip | |
Use results from getContentList directly
Diffstat (limited to 'menu_items.php')
| -rw-r--r-- | menu_items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/menu_items.php b/menu_items.php index f2b477a..01a36de 100644 --- a/menu_items.php +++ b/menu_items.php @@ -1,7 +1,7 @@ <?php /** * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * @package nexus * @subpackage functions */ @@ -26,7 +26,7 @@ $gBitSmarty->assign( 'contentSelect', $contentSelect ); $gBitSmarty->assign( 'contentTypes', $contentTypes ); $cList[''] = ''; -foreach( $contentList['data'] as $cItem ) { +foreach( $contentList as $cItem ) { $cList[$contentTypes[$cItem['content_type_guid']]][$cItem['content_id']] = $cItem['title'].' [id: '.$cItem['content_id'].']'; } $gBitSmarty->assign( 'contentList', $cList ); |
