diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2012-02-12 18:56:53 -0800 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2012-02-12 18:56:53 -0800 |
commit | 9697e8233182bc084fb614b2c997b6e0c89c2441 (patch) | |
tree | cc5fc682ea9b8eeefe6fbbab2b7ffb0fedeb4f75 /include/text.php | |
parent | 135005571f4cfe3170b2f2ce0ea94b39a75c111a (diff) | |
parent | 3e85c1d3304c51489249ce2a284910885a1a3c73 (diff) | |
download | volse-hubzilla-9697e8233182bc084fb614b2c997b6e0c89c2441.tar.gz volse-hubzilla-9697e8233182bc084fb614b2c997b6e0c89c2441.tar.bz2 volse-hubzilla-9697e8233182bc084fb614b2c997b6e0c89c2441.zip |
Merge branch 'master' into bbcode
Diffstat (limited to 'include/text.php')
-rwxr-xr-x | include/text.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 46027a897..798e809d1 100755 --- a/include/text.php +++ b/include/text.php @@ -428,8 +428,10 @@ if(! function_exists('logger')) { function logger($msg,$level = 0) { // turn off logger in install mode global $a; - if ($a->module == 'install') return; - + global $db; + + if(($a->module == 'install') || (! ($db && $db->connected))) return; + $debugging = get_config('system','debugging'); $loglevel = intval(get_config('system','loglevel')); $logfile = get_config('system','logfile'); |