aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 356ecd003..5ee17c486 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1861,6 +1861,20 @@
}
/**
+ * Function to be used in array_filter which returns true if $string is not null.
+ *
+ * @param string $string
+ * @return bool
+ */
+ function is_not_null($string)
+ {
+ if (($string==='') || ($string===false) || ($string===null))
+ return false;
+
+ return true;
+ }
+
+ /**
* Get the full URL of the current page.
*
* @return string The URL