aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-23 02:47:07 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-23 02:47:07 +0000
commitf7b596b2d27c048df50b9e1b772e7c4aae55be9f (patch)
treeba0b8882e308b001f2cf9248216609a2810b2306 /engine
parenta1133e9c1620d235903b37a97d03ee82cbbb3286 (diff)
downloadelgg-f7b596b2d27c048df50b9e1b772e7c4aae55be9f.tar.gz
elgg-f7b596b2d27c048df50b9e1b772e7c4aae55be9f.tar.bz2
returning an empty array when there are no widgets for a context
git-svn-id: http://code.elgg.org/elgg/trunk@7426 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/widgets.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php
index cf73f664c..f4cb8765b 100644
--- a/engine/lib/widgets.php
+++ b/engine/lib/widgets.php
@@ -17,7 +17,7 @@
* @param int $user_guid The owner user GUID
* @param string $context The context (profile, dashboard, etc)
*
- * @return array|false An 2D array of ElggWidget objects or false
+ * @return array An 2D array of ElggWidget objects
* @since 1.8.0
*/
function elgg_get_widgets($user_guid, $context) {
@@ -30,7 +30,7 @@ function elgg_get_widgets($user_guid, $context) {
);
$widgets = elgg_get_entities_from_private_settings($options);
if (!$widgets) {
- return false;
+ return array();
}
$sorted_widgets = array();