summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2006-09-20 21:29:45 +0000
committerwjames5 <will@tekimaki.com>2006-09-20 21:29:45 +0000
commita4caff19bdf70757e444e19b837ed160956b5fca (patch)
tree68b1f6d5c846ce8da9ad22dc59af97b05bde968c
parent75c328de6bfdb4a1e9d0c03909c4d51d0686ad9f (diff)
downloadliberty-a4caff19bdf70757e444e19b837ed160956b5fca.tar.gz
liberty-a4caff19bdf70757e444e19b837ed160956b5fca.tar.bz2
liberty-a4caff19bdf70757e444e19b837ed160956b5fca.zip
accounts for when an array of content_type_guid's are passed in REQUEST
-rw-r--r--get_content_list_inc.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/get_content_list_inc.php b/get_content_list_inc.php
index 89be80f..6a53cfe 100644
--- a/get_content_list_inc.php
+++ b/get_content_list_inc.php
@@ -3,7 +3,7 @@
* get_content_list
*
* @author Christian Fowler>
- * @version $Revision: 1.25 $
+ * @version $Revision: 1.26 $
* @package liberty
* @subpackage functions
*/
@@ -19,8 +19,12 @@ if( empty( $gContent ) || !is_object( $gContent ) ) {
$gContent = new LibertyContent();
}
-if( !empty($_REQUEST['content_type_guid']) ){
- $contentTypeGuids = explode( ",", $_REQUEST['content_type_guid'] );
+if( !empty($_REQUEST['content_type_guid'])){
+ if (!is_array($_REQUEST['content_type_guid'])){
+ $contentTypeGuids = explode( ",", $_REQUEST['content_type_guid'] );
+ }else{
+ $contentTypeGuids = $_REQUEST['content_type_guid'];
+ }
}
// get_content_list_inc doesn't use $_REQUEST parameters as it might not be the only list in the page that needs sorting and limiting