aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-02 15:28:09 +0300
committerValentin Popov <info@valentineus.link>2017-12-02 15:28:09 +0300
commit5b858a5c29b28e7ba0bb5d74ac2c85dd45f81769 (patch)
tree798376386e1c8e1d0352d795035d0bfc3d086e08
parentfceec08ec2f48ae955dd44d68a1a9b694c76b0a1 (diff)
downloadtool_managertokens-0.1.0.tar.xz
tool_managertokens-0.1.0.zip
Correction of variable namesv0.1.0
-rw-r--r--lib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib.php b/lib.php
index 2b773f2..aab80b7 100644
--- a/lib.php
+++ b/lib.php
@@ -33,9 +33,9 @@ defined("MOODLE_INTERNAL") || die();
function tool_managertokens_activate_token($token = "") {
global $DB;
- $select_limited = "limited = 0 OR scope < limited";
- $select_timelimited = "timelimited = 0 OR (timecreated + timelimited) > " . time();
- $select = "enabled = 1 AND token = '$token' AND ($select_limited) AND ($select_timelimited)";
+ $selectlimited = "limited = 0 OR scope < limited";
+ $selecttimelimited = "timelimited = 0 OR (timecreated + timelimited) > " . time();
+ $select = "enabled = 1 AND token = '$token' AND ($selectlimited) AND ($selecttimelimited)";
if ($token = $DB->get_record_select("tool_managertokens_tokens", $select, null, "*", IGNORE_MISSING)) {
$token = tool_managertokens_standardization_record($token);
$token->scope = $token->scope + 1;