aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-20 09:34:00 +0000
committerMario <mario@mariovavti.com>2020-04-20 09:34:00 +0000
commit244936b0fd3ac60defa9fa6042e6ee3be869721c (patch)
tree298ae3ea65af63028fb7fd22880569317276fb1a /include
parentf430a24fa38ea9d47d2916243e33d61b08f50f0f (diff)
downloadvolse-hubzilla-244936b0fd3ac60defa9fa6042e6ee3be869721c.tar.gz
volse-hubzilla-244936b0fd3ac60defa9fa6042e6ee3be869721c.tar.bz2
volse-hubzilla-244936b0fd3ac60defa9fa6042e6ee3be869721c.zip
some work on improving federation of item_private and make sure we deal with an array in array_path_exists()
Diffstat (limited to 'include')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 5d1cf6eff..6f56a0754 100644
--- a/include/text.php
+++ b/include/text.php
@@ -3732,7 +3732,7 @@ function array_path_exists($str,$arr) {
if($search) {
foreach($search as $s) {
- if($ptr && array_key_exists($s,$ptr)) {
+ if(is_array($ptr) && array_key_exists($s,$ptr)) {
$ptr = $ptr[$s];
}
else {