From 413ea817c78a2cd7cbe3bebad1623daaaeea6394 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 7 Nov 2009 18:23:59 +0000 Subject: fixed bug in list_entities() wrapper function - it was ignoring false values - there are probably similar problems in the other new wrapper functions git-svn-id: http://code.elgg.org/elgg/trunk@3632 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 80c236ecc..0afe30a6e 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2195,17 +2195,9 @@ function list_entities($type= "", $subtype = "", $owner_guid = 0, $limit = 10, $ $options['offset'] = $offset; } - if ($fullview) { - $options['full_view'] = $fullview; - } - - if ($viewtoggletype) { - $options['view_toggle_type'] = $viewtoggletype; - } - - if ($pagination) { - $options['pagination'] = $pagination; - } + $options['full_view'] = $fullview; + $options['view_toggle_type'] = $viewtoggletype; + $options['pagination'] = $pagination; return elgg_list_entities($options); } -- cgit v1.2.3