diff options
author | friendica <info@friendica.com> | 2012-11-01 19:47:10 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-11-01 19:47:10 -0700 |
commit | 3bf5677797a6a40dacac2ddcbe9271aea508e421 (patch) | |
tree | fa7e37883391fa81af4bfe5601cfaeca15aac39e /mod/new_channel.php | |
parent | 1021a4d4763974c3c40f40a0ca9682f1fcc3f6ee (diff) | |
download | volse-hubzilla-3bf5677797a6a40dacac2ddcbe9271aea508e421.tar.gz volse-hubzilla-3bf5677797a6a40dacac2ddcbe9271aea508e421.tar.bz2 volse-hubzilla-3bf5677797a6a40dacac2ddcbe9271aea508e421.zip |
settings page channel permissions front-end (needs back-end still)
Diffstat (limited to 'mod/new_channel.php')
-rw-r--r-- | mod/new_channel.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/new_channel.php b/mod/new_channel.php index e815b2a73..4067d84d3 100644 --- a/mod/new_channel.php +++ b/mod/new_channel.php @@ -17,7 +17,8 @@ function new_channel_init(&$a) { $test = array(); // first name - $test[] = legal_webbie(substr($x,0,strpos($x,' '))); + if(strpos($x,' ')) + $test[] = legal_webbie(substr($x,0,strpos($x,' '))); if($test[0]) { // first name plus first initial of last $test[] = ((strpos($x,' ')) ? $test[0] . legal_webbie(trim(substr($x,strpos($x,' '),2))) : ''); |