mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
fix: alltasks list sorting was not saved on change
This commit is contained in:
parent
9f918c0663
commit
c51a46567d
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ function haveWriteAccess(?int $listId = null)
|
|||
return false;
|
||||
}
|
||||
// check list exist
|
||||
if ($listId !== null)
|
||||
if ($listId !== null && $listId != -1)
|
||||
{
|
||||
$db = DBConnection::instance();
|
||||
$count = $db->sq("SELECT COUNT(*) FROM {$db->prefix}lists WHERE id=?", array($listId));
|
||||
|
|
|
|||
Loading…
Reference in a new issue