mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
fix missing var in export and rss feed scripts
This commit is contained in:
parent
4b63364a9b
commit
6d01a37418
2 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ $onlyPublishedList = false;
|
|||
if(!have_write_access()) $onlyPublishedList = true;
|
||||
|
||||
$listId = (int)_get('list');
|
||||
$db = DBConnection::instance();
|
||||
$listData = $db->sqa("SELECT * FROM {$db->prefix}lists WHERE id=$listId ". ($onlyPublishedList ? "AND published=1" : "") );
|
||||
if(!$listData) {
|
||||
die("No such list or access denied");
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ require_once(MTTINC. 'markup.php');
|
|||
$lang = Lang::instance();
|
||||
|
||||
$listId = (int)_get('list');
|
||||
|
||||
$db = DBConnection::instance();
|
||||
$listData = $db->sqa("SELECT * FROM {$db->prefix}lists WHERE id=$listId");
|
||||
if (need_auth() && (!$listData || !$listData['published'])) {
|
||||
die("Access denied!<br> List is not published.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue