]> git.mxchange.org Git - friendica.git/commitdiff
missing param
authorfriendica <info@friendica.com>
Wed, 2 May 2012 09:18:54 +0000 (02:18 -0700)
committerfriendica <info@friendica.com>
Wed, 2 May 2012 09:18:54 +0000 (02:18 -0700)
include/contact_widgets.php

index c6f3168fe445d9306c875667d1a30d063860ee47..bf3a8695836b38a9e59f7caa2167c78e927403df 100644 (file)
@@ -147,7 +147,8 @@ function common_friends_visitor_widget($profile_uid) {
        else {
                if(get_my_url()) {
                        $r = q("select id from contact where nurl = '%s' and uid = %d limit 1",
-                               dbesc(normalise_link(get_my_url()))
+                               dbesc(normalise_link(get_my_url())),
+                               intval($profile_uid)
                        );
                        if(count($r))
                                $cid = $r[0]['id'];