To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 14d0ecdb authored by vermeul's avatar vermeul
Browse files

bugfix empty hashtags

parent bb08f715
...@@ -545,7 +545,7 @@ EOT; ...@@ -545,7 +545,7 @@ EOT;
} }
# make sure hashtags always start with a hash symbol: # # make sure hashtags always start with a hash symbol: #
if (substr($hashtag, 0,1) != '#') { if ($hashtag && substr($hashtag, 0,1) != '#') {
$hashtag = '#'.$hashtag; $hashtag = '#'.$hashtag;
} }
...@@ -581,7 +581,7 @@ EOT; ...@@ -581,7 +581,7 @@ EOT;
$set["name"] = $args["name"]; $set["name"] = $args["name"];
} }
if (array_key_exists("hashtag", $args) ) { if (array_key_exists("hashtag", $args) ) {
if (substr($args["hashtag"], 0,1) != '#') { if ($args["hashtag"] && substr($args["hashtag"], 0,1) != '#') {
$args["hashtag"] = '#'.$args["hashtag"]; $args["hashtag"] = '#'.$args["hashtag"];
} }
$set["hashtag"] = $args["hashtag"]; $set["hashtag"] = $args["hashtag"];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment