summaryrefslogtreecommitdiff
path: root/lib/study/listadd.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/study/listadd.php')
-rw-r--r--lib/study/listadd.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/study/listadd.php b/lib/study/listadd.php
deleted file mode 100644
index 536ab1d..0000000
--- a/lib/study/listadd.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-assert_redir(count($args) == 3, 'list');
-$listid = intval($args[2]);
-$list = mysql_fetch_assoc(sql("SELECT id FROM lists WHERE id = $listid"));
-assert_error($list, "This list does not exist.");
-
-assert_error(!mysql_fetch_assoc(sql("SELECT id FROM list_study WHERE list = $listid AND user = " . $user['id'])),
- "You are already studying this list.");
-
-sql("INSERT INTO list_study(user, list) VALUES(" . $user['id'] . ", $listid)");
-header("Location: list-study-".mysql_insert_id());
-die();