]> git.mxchange.org Git - friendica.git/blobdiff - mod/delegate.php
Events: Now with guid.
[friendica.git] / mod / delegate.php
index d421de37643791dcbf613850a5152560b415ee4e..20d2e605e0a2d91c90e1d664567037d6baf1902d 100644 (file)
@@ -1,13 +1,11 @@
 <?php
 require_once('mod/settings.php');
 
-if(! function_exists('delegate_init')) {
 function delegate_init(&$a) {
        return settings_init($a);
 }
-}
 
-if(! function_exists('delegate_content')) {
+
 function delegate_content(&$a) {
 
        if(! local_user()) {
@@ -92,12 +90,12 @@ function delegate_content(&$a) {
 
        // find every contact who might be a candidate for delegation
 
-       $r = q("select nurl from contact where substring_index(contact.nurl,'/',3) = '%s'
+       $r = q("select nurl from contact where substring_index(contact.nurl,'/',3) = '%s' 
                and contact.uid = %d and contact.self = 0 and network = '%s' ",
                dbesc(normalise_link($a->get_baseurl())),
                intval(local_user()),
                dbesc(NETWORK_DFRN)
-       );
+       ); 
 
        if(! count($r)) {
                notice( t('No potential page delegates located.') . EOL);
@@ -146,5 +144,5 @@ function delegate_content(&$a) {
 
        return $o;
 
-}
+
 }