diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-22 15:29:24 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-22 15:29:24 +0000 |
commit | 7fb95f609a42da3964188b8093d0b66e439e33d0 (patch) | |
tree | 5288c40ea5ed9b4fa76574e1032d20bb093b791a /engine/lib/elgglib.php | |
parent | 2f6790702c0a15e664c2d7e607c229025ecdbbaf (diff) | |
download | elgg-7fb95f609a42da3964188b8093d0b66e439e33d0.tar.gz elgg-7fb95f609a42da3964188b8093d0b66e439e33d0.tar.bz2 |
Closes #701: Blank tags not returned by string_to_tag_array
git-svn-id: https://code.elgg.org/elgg/trunk@2597 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 14 |
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 |