diff options
author | Valentin Popov <info@valentineus.link> | 2017-12-03 18:16:07 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-12-03 18:16:07 +0300 |
commit | 90cf7a0ce17f84f5d484904691956a1f784846ee (patch) | |
tree | ca3da7dce103ef646af67c2f79601200204ab90b /lib.php | |
parent | 86b7b53264dbc69d2ed73dacedc4792afd8be90a (diff) | |
download | tool_managertokens-90cf7a0ce17f84f5d484904691956a1f784846ee.tar.xz tool_managertokens-90cf7a0ce17f84f5d484904691956a1f784846ee.zip |
Align columns
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -68,12 +68,12 @@ function tool_managertokens_create_record($options) { global $DB; $token = new stdClass(); - $token->enabled = !empty($options->enabled) ? boolval($options->enabled) : false; - $token->limited = !empty($options->limited) ? intval($options->limited) : 0; - $token->targetid = !empty($options->targetid) ? intval($options->targetid) : 0; - $token->targettype = !empty($options->targettype) ? strval($options->targettype) : "null"; + $token->enabled = !empty($options->enabled) ? boolval($options->enabled) : false; + $token->limited = !empty($options->limited) ? intval($options->limited) : 0; + $token->targetid = !empty($options->targetid) ? intval($options->targetid) : 0; + $token->targettype = !empty($options->targettype) ? strval($options->targettype) : "null"; $token->timelimited = !empty($options->timelimited) ? intval($options->timelimited) : 0; - $token->token = !empty($options->token) ? strval($options->token) : generate_password(12); + $token->token = !empty($options->token) ? strval($options->token) : generate_password(12); $token->timecreated = time(); $token->timemodified = time(); |