Skip to content
Permalink
Browse files

prevent cache list name "Neue Cacheliste"

  • Loading branch information...
mirsch committed May 26, 2016
1 parent ad0de3f commit 7cce71c95a7fa1b9ef9598306a5802b027d55939
Showing with 5 additions and 1 deletion.
  1. +5 −1 htdocs/addtolist.php
@@ -26,8 +26,12 @@
}
$newlist_name = isset($_REQUEST['newlist_name']) ? trim($_REQUEST['newlist_name']) : false;
if ($newlist_name == _('New cache list')) {
$newlist_name = false;
}
$newlist_public = isset($_REQUEST['newlist_public']);
$newlist_watch = isset($_REQUEST['newlist_watch']);
$default_list = isset($_REQUEST['listid']) ? (int) $_REQUEST['listid'] : cachelist::getMyLastAddedToListId();
if (isset($_REQUEST['save']) && isset($_REQUEST['listid'])) {
$listid = $_REQUEST['listid'] + 0;
@@ -57,7 +61,7 @@
$tpl->assign('cachename', sql_value("SELECT `name` FROM `caches` WHERE `cache_id`='&1'", '', $cacheid));
$tpl->assign('cachelists', cachelist::getMyLists());
$tpl->assign('default_list', cachelist::getMyLastAddedToListId());
$tpl->assign('default_list', $default_list);
$tpl->assign('newlist_name', $newlist_name);
$tpl->assign('newlist_public', $newlist_public);
$tpl->assign('newlist_watch', $newlist_watch);

0 comments on commit 7cce71c

Please sign in to comment.
You can’t perform that action at this time.