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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php
index 1343e1319..1646c18d4 100644
--- a/engine/lib/widgets.php
+++ b/engine/lib/widgets.php
@@ -57,7 +57,7 @@ function elgg_get_widgets($user_guid, $context) {
* @since 1.8
*/
function elgg_create_widget($owner_guid, $handler, $access_id = null) {
- if (empty($owner_guid) || empty($handler) || !elgg_widget_type_exists($handler)) {
+ if (empty($owner_guid) || empty($handler) || !elgg_is_widget_type($handler)) {
return false;
}