aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 3d1329e08..f90179b4f 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -355,7 +355,7 @@
*/
function make_register_object($register_name, $register_value, $children_array = array()) {
- if (empty($register_name) || empty($subregister_name) || empty($register_array))
+ if (empty($register_name) || empty($register_value))
return false;
$register = new stdClass;