fix inability to unset title

This commit is contained in:
flash 2016-09-22 20:04:20 +02:00
parent f12e4e11b0
commit fc34d4d4c3

View file

@ -188,7 +188,7 @@ class AccountController extends Controller
$title = $_POST['title'] ?? null;
if ($title) {
if ($title !== null) {
if (strlen($title) > 64) {
return $this->json(
['error' => 'This title is too long!']