From: Tobias Diekershoff Date: Mon, 13 Jan 2014 13:25:50 +0000 (+0100) Subject: better logic X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fda7bdca2eb7666c9c04b45f0c5952e87a045e2c;p=friendica.git better logic --- diff --git a/mod/profiles.php b/mod/profiles.php index ad1f9a3512..65c329af1c 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -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; }