aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/widgets.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/widgets.php')
-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();