]> git.mxchange.org Git - friendica.git/commitdiff
negative set
authorPhilipp Holzer <admin@philipp.info>
Mon, 18 Feb 2019 13:10:04 +0000 (14:10 +0100)
committerPhilipp Holzer <admin@philipp.info>
Mon, 18 Feb 2019 13:10:04 +0000 (14:10 +0100)
src/Core/Config/Adapter/PreloadConfigAdapter.php
src/Core/Config/Adapter/PreloadPConfigAdapter.php

index d4ce6406b4442b4b815cc6d8d9ff59d328f88d83..218648cbdb4fc4e2c1dfaae67f959d24c7d2313c 100644 (file)
@@ -35,6 +35,8 @@ class PreloadConfigAdapter extends AbstractDbaConfigAdapter implements IConfigAd
                        $value = $config['v'];
                        if (isset($value) && $value !== '') {
                                $return[$config['cat']][$config['k']] = $value;
+                       } else {
+                               $return[$config['cat']][$config['k']] = '!<unset>!';
                        }
                }
                DBA::close($configs);
index 090d0f5c6f211975f5acf9754eddee6314f51325..5c736b2fff2de2ff84696d53d807519e986cfeab 100644 (file)
@@ -47,6 +47,8 @@ class PreloadPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfig
                        $value = $pconfig['v'];
                        if (isset($value) && $value !== '') {
                                $return[$pconfig['cat']][$pconfig['k']] = $value;
+                       } else {
+                               $return[$pconfig['cat']][$pconfig['k']] = '!<unset>!';
                        }
                }
                DBA::close($pconfigs);