]> git.mxchange.org Git - friendica.git/commitdiff
log disabled requests
authorfriendica <info@friendica.com>
Thu, 5 Apr 2012 01:49:39 +0000 (18:49 -0700)
committerfriendica <info@friendica.com>
Thu, 5 Apr 2012 01:49:39 +0000 (18:49 -0700)
include/diaspora.php

index 9951cf42378967f01ade26ee2a16d6e466edb24e..37d5990eeea6b51a8624e10bbf8dc804137f9c08 100755 (executable)
@@ -10,8 +10,10 @@ require_once('include/queue_fn.php');
 function diaspora_dispatch_public($msg) {
 
        $enabled = intval(get_config('system','diaspora_enabled'));
-       if(! $enabled)
+       if(! $enabled) {
+               logger('mod-diaspora: disabled');
                return;
+       }
 
        $r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN ( SELECT `contact`.`uid` FROM `contact` WHERE `contact`.`network` = '%s' AND `contact`.`addr` = '%s' ) AND `account_expired` = 0 ",
                dbesc(NETWORK_DIASPORA),
@@ -34,8 +36,10 @@ function diaspora_dispatch($importer,$msg) {
        $ret = 0;
 
        $enabled = intval(get_config('system','diaspora_enabled'));
-       if(! $enabled)
+       if(! $enabled) {
+               logger('mod-diaspora: disabled');
                return;
+       }
 
        // php doesn't like dashes in variable names