From: Roland Haeder Date: Thu, 30 Mar 2017 19:38:22 +0000 (+0200) Subject: removed old-lost code by CR request X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f998438d430d8f5081e09c0511528b61e7aa753b;p=friendica.git removed old-lost code by CR request Signed-off-by: Roland Haeder --- diff --git a/mod/photos.php b/mod/photos.php index 376f8ec7c6..478c954aaa 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -613,20 +613,7 @@ function photos_post(App $a) { ); } } - /// @TODO maybe old-lost code to be removed -/* elseif (strstr($name,'_') || strstr($name,' ')) { - $newname = str_replace('_',' ',$name); - $r = q("SELECT * FROM `contact` WHERE `name` = '%s' AND `uid` = %d LIMIT 1", - dbesc($newname), - intval($page_owner_uid) - ); - } else { - $r = q("SELECT * FROM `contact` WHERE `attag` = '%s' OR `nick` = '%s' AND `uid` = %d ORDER BY `attag` DESC LIMIT 1", - dbesc($name), - dbesc($name), - intval($page_owner_uid) - ); - }*/ + if (dbm::is_result($r)) { $newname = $r[0]['name']; $profile = $r[0]['url'];