aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/text.php22
-rw-r--r--util/hmessages.po2
2 files changed, 23 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index ec3eb7b10..80ed7d6db 100644
--- a/include/text.php
+++ b/include/text.php
@@ -3331,6 +3331,28 @@ function array2XML($obj, $array) {
}
}
+function array_path_exists($str,$arr) {
+
+ $ptr = $arr;
+ $search = explode('/', $str);
+
+ if($search) {
+ foreach($search as $s) {
+ if(array_key_exists($s,$ptr)) {
+ $ptr = $ptr[$s];
+ }
+ else {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ return false;
+
+}
+
+
/**
* @brief Inserts an array into $table.
*
diff --git a/util/hmessages.po b/util/hmessages.po
index 91cc1f191..a4f6dd588 100644
--- a/util/hmessages.po
+++ b/util/hmessages.po
@@ -13375,7 +13375,7 @@ msgid ""
"Cannot create a duplicate channel identifier on this system. Import failed."
msgstr ""
-#: ../../include/import.php:117
+#: ../../include/import.php:116
msgid "Cloned channel not found. Import failed."
msgstr ""