aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/XConfig.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-20 19:25:01 +0000
committerMario <mario@mariovavti.com>2022-10-20 19:25:01 +0000
commit7ca289edd0d568a51dfdf225a5ef0e9663c38838 (patch)
tree5af544fa0ff7ca29fad5b57240a7ed2d66c5b2cf /Zotlabs/Lib/XConfig.php
parentbf434818d7cfac6bf29482d4bb07fc567de2fc90 (diff)
downloadvolse-hubzilla-7ca289edd0d568a51dfdf225a5ef0e9663c38838.tar.gz
volse-hubzilla-7ca289edd0d568a51dfdf225a5ef0e9663c38838.tar.bz2
volse-hubzilla-7ca289edd0d568a51dfdf225a5ef0e9663c38838.zip
fix php warnings
Diffstat (limited to 'Zotlabs/Lib/XConfig.php')
-rw-r--r--Zotlabs/Lib/XConfig.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/XConfig.php b/Zotlabs/Lib/XConfig.php
index c5a108ac9..76ac8dc7a 100644
--- a/Zotlabs/Lib/XConfig.php
+++ b/Zotlabs/Lib/XConfig.php
@@ -162,7 +162,7 @@ class XConfig {
*/
static public function Delete($xchan, $family, $key) {
- if(x(\App::$config[$xchan][$family], $key))
+ if(isset(\App::$config[$xchan][$family][$key]))
unset(\App::$config[$xchan][$family][$key]);
$ret = q("DELETE FROM xconfig WHERE xchan = '%s' AND cat = '%s' AND k = '%s'",