From 5b858a5c29b28e7ba0bb5d74ac2c85dd45f81769 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 2 Dec 2017 16:28:09 +0400 Subject: Correction of variable names --- lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib.php') 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; -- cgit v1.2.3