]> git.mxchange.org Git - friendica.git/commitdiff
Merge branch 'rewrites/is_filled_array_introduced' of git://github.com/Quix0r/friendi...
authorMichael Vogel <icarus@dabo.de>
Sat, 2 Jul 2016 11:38:23 +0000 (13:38 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 2 Jul 2016 11:38:23 +0000 (13:38 +0200)
Conflicts:
boot.php

1  2 
boot.php
include/ForumManager.php
include/poller.php
index.php
mod/message.php
mod/network.php
mod/ping.php
mod/profile.php

diff --cc boot.php
index 42767845c267b0089dcde159f91716ea8e78dabf,a9ff0c30c340d55e247610af6f70b3a6ff7ccf2f..e1c7f6b119a77db31b0fd0693ba7677a39e57cb6
+++ b/boot.php
@@@ -1901,6 -1888,32 +1901,31 @@@ function is_site_admin() 
        return false;
  }
  
 -
+ function load_contact_links($uid) {
+       $a = get_app();
+       $ret = array();
+       if(! $uid || x($a->contacts,'empty'))
+               return;
+       $r = q("SELECT `id`,`network`,`url`,`thumb`, `rel` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `thumb` != ''",
+                       intval($uid)
+       );
+       if(dba::is_result($r)) {
+               foreach($r as $rr){
+                       $url = normalise_link($rr['url']);
+                       $ret[$url] = $rr;
+               }
+       } else
+               $ret['empty'] = true;
+       $a->contacts = $ret;
+       return;
+ }
  /**
   * @brief Returns querystring as string from a mapped array.
   *
Simple merge
Simple merge
diff --cc index.php
Simple merge
diff --cc mod/message.php
index ef5dce826ec5c62e3d54007ea25802d2ef49cca8,b6981cc88c6fbbadc458150fb22d8eeb33e86171..b08ab200eca2a13b32790bd0e86aaa0cb8e66dc1
@@@ -370,10 -356,13 +370,12 @@@ function message_content(&$a) 
  
                $r = q("SELECT count(*) AS `total` FROM `mail`
                        WHERE `mail`.`uid` = %d GROUP BY `parent-uri` ORDER BY `created` DESC",
 -                      intval(local_user()),
 -                      dbesc($myprofile)
 +                      intval(local_user())
                );
  
-               if(count($r)) $a->set_pager_total($r[0]['total']);
+               if (dba::is_result($r)) {
+                       $a->set_pager_total($r[0]['total']);
+               }
  
                $r = get_messages(local_user(), $a->pager['start'], $a->pager['itemspage']);
  
diff --cc mod/network.php
Simple merge
diff --cc mod/ping.php
Simple merge
diff --cc mod/profile.php
Simple merge