Fixed logical flaw in updating a blogs title

This commit is contained in:
sloumdrone 2019-01-05 13:58:32 -08:00
parent 1a3dd6f969
commit e33633baab
1 changed files with 1 additions and 1 deletions

2
stubb
View File

@ -190,7 +190,7 @@ function update_favorite()
local item = session.favorites[id]
if item then
print(string.format('Old title: %s', item.display))
while title ~= '' do
while not title or title == '' do
io.write('Enter new title (! to cancel) > ')
title = io.read()
if title == '!' then return print('Cancelled') end