aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-12 14:18:32 -0800
committerfriendica <info@friendica.com>2012-02-12 14:18:32 -0800
commit330a876d819c640d759776b12c79b46751c4754a (patch)
tree32392873489b456bb085fbaf4d17ec53f7232d2c /include/text.php
parent34ac72cffdc9c5614ec36013319634b5173f4b47 (diff)
downloadvolse-hubzilla-330a876d819c640d759776b12c79b46751c4754a.tar.gz
volse-hubzilla-330a876d819c640d759776b12c79b46751c4754a.tar.bz2
volse-hubzilla-330a876d819c640d759776b12c79b46751c4754a.zip
bug #281
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php6
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');