From e643ab702b6f8466ed913442e8aaee0089902cb6 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Jul 2011 06:03:21 +0000 Subject: [PATCH] Added new in_array_strict method which defaults to a strict mode. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20951 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index df315b676..ed0491bd3 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -3938,5 +3938,12 @@ function gosa_fopen($filename, $mode) } } + +/*\brief Our own in_array method which defaults to a strict mode. + */ +function in_array_strict($needle, $haystack, $strict = TRUE){ + return(in_array($needle, $haystack, $strict)); +} + // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2