Member updates
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 20 Aug 2013 18:09:29 +0000 (18:09 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 20 Aug 2013 18:09:29 +0000 (18:09 +0000)
fixed for when no url don't output anything for website on the detail
pages.

Toolkit/Members/ProfilePage.php

index 56ad49a..89a1a00 100644 (file)
@@ -526,7 +526,7 @@ class Toolkit_Members_ProfilePage
             $page->directions  = $row['directions'];
             $page->information = $row['information'];
 
-            if (strpos($row['url'], 'http://') === false) {
+            if ($row['url'] && strpos($row['url'], 'http://') === false) {
                 $row['url'] = 'http://' . $row['url'];
             }
             $page->url         = $row['url'];