From: Roland Haeder Date: Tue, 1 Mar 2016 13:33:54 +0000 (+0100) Subject: Introduced is_filled_array() + added some missing array initialization X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=476d904c109bfd35902bd299416f17ec862dc64a;p=friendica.git Introduced is_filled_array() + added some missing array initialization Signed-off-by: Roland Haeder --- diff --git a/boot.php b/boot.php index 108d8d0ede..57d1c77684 100644 --- a/boot.php +++ b/boot.php @@ -2202,3 +2202,7 @@ function argv($x) { return ''; } + +function is_filled_array ($array) { + return (is_array($array) && count($array) > 0); +}