Several more warnings ... (#5340)
[friendica.git/.git] / mod / profile.php
index 9317239..60741db 100644 (file)
@@ -282,6 +282,8 @@ function profile_content(App $a, $update = 0)
 
                if (!DBM::is_result($r)) {
                        $sql_extra3 = sprintf(" AND `thread`.`contact-id` = %d ", intval(intval($a->profile['contact_id'])));
+               } else {
+                       $sql_extra3 = "";
                }
 
                //  check if we serve a mobile device and get the user settings