diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-07 18:23:59 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-07 18:23:59 +0000 |
commit | 413ea817c78a2cd7cbe3bebad1623daaaeea6394 (patch) | |
tree | 7a72bd4530a5bbc4c97eb1abec990def6047a4b9 /engine | |
parent | 7e448c5a4977976b64293e4d60fef7600b3dd18b (diff) | |
download | elgg-413ea817c78a2cd7cbe3bebad1623daaaeea6394.tar.gz elgg-413ea817c78a2cd7cbe3bebad1623daaaeea6394.tar.bz2 |
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
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/entities.php | 14 |
1 files 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); } |