diff options
author | Valentin Popov <info@valentineus.link> | 2017-12-02 15:28:09 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-12-02 15:28:09 +0300 |
commit | 5b858a5c29b28e7ba0bb5d74ac2c85dd45f81769 (patch) | |
tree | 798376386e1c8e1d0352d795035d0bfc3d086e08 /lib.php | |
parent | fceec08ec2f48ae955dd44d68a1a9b694c76b0a1 (diff) | |
download | tool_managertokens-5b858a5c29b28e7ba0bb5d74ac2c85dd45f81769.tar.xz tool_managertokens-5b858a5c29b28e7ba0bb5d74ac2c85dd45f81769.zip |
Correction of variable namesv0.1.0
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |