summaryrefslogtreecommitdiffstats
path: root/lib/kolab_utils.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-03-21 14:56:31 +0100
committerAleksander Machniak <alec@alec.pl>2012-03-21 14:56:31 +0100
commit9117d4f73fe8daf847864ce422df93c3c1e4a0e8 (patch)
tree737e99f49296d2e1adc1c582018928b11f4413d2 /lib/kolab_utils.php
parent5246c66ba6a80334d9d0c8860cf89b204fe92e48 (diff)
downloadwebadmin-9117d4f73fe8daf847864ce422df93c3c1e4a0e8.tar.gz
Autocompletion list widget
Diffstat (limited to 'lib/kolab_utils.php')
-rw-r--r--lib/kolab_utils.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/kolab_utils.php b/lib/kolab_utils.php
index 2694f71..b80bc6a 100644
--- a/lib/kolab_utils.php
+++ b/lib/kolab_utils.php
@@ -142,4 +142,13 @@ class kolab_utils
return false;
}
+
+ /**
+ * Finds wether an array is associative or not.
+ */
+ public static function is_assoc ($arr)
+ {
+ return is_array($arr) && count(array_filter(array_keys($arr), 'is_string')) == count($arr);
+ }
+
}