Skip to content

Commit e894611

Browse files
committed
use the default color #ffffff for the project if the user did not set one
1 parent f71463f commit e894611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Controller/AjaxController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public function addProject($name) {
552552
$clientId = $this->request->clientId;
553553
}
554554
$color = '#ffffff';
555-
if (isset($this->request->color)) {
555+
if (isset($this->request->color) && !empty($this->request->color)) {
556556
$color = $this->request->color;
557557
}
558558
if (trim($name) == ''){

0 commit comments

Comments
 (0)