]> git.mxchange.org Git - friendica.git/commitdiff
better logic
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 13 Jan 2014 13:25:50 +0000 (14:25 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 13 Jan 2014 13:25:50 +0000 (14:25 +0100)
mod/profiles.php

index ad1f9a35126aba44e6e19ca39191318d0f85ca04..65c329af1c00c540dbfc998eaaa26d60686ab611 100644 (file)
@@ -288,7 +288,7 @@ function profiles_post(&$a) {
 
                $sexual = notags(trim($_POST['sexual']));
                $homepage = notags(trim($_POST['homepage']));
-               if (strpos($homepage, 'http') === false) {
+               if (strpos($homepage, 'http') !== 0) {
                    // neither http nor https in URL, add them
                    $homepage = 'http://'.$homepage;
                }