summaryrefslogtreecommitdiff
path: root/authtoken.json
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-09-18 14:54:08 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-09-18 14:54:08 (GMT)
commitebbdacfb7cbe31ca917e3f115ff6913d85a439a3 (patch)
treec86bbcc65dc4daab42cc977f9897856445eaf9b7 /authtoken.json
parenta6fb1a8e95126a33fd742ff014bc813e9fa20be4 (diff)
consistent return value scheme
Diffstat (limited to 'authtoken.json')
-rwxr-xr-xauthtoken.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/authtoken.json b/authtoken.json
index c080028..2db49de 100755
--- a/authtoken.json
+++ b/authtoken.json
@@ -14,6 +14,7 @@ if(defined $ENV{REMOTE_USER}) {
($dbh, $status, $errorstring) = rddb::opendb();
if(defined $dbh) {
($token, $status, $errorstring) = rddb::get_token($dbh, $ENV{REMOTE_USER});
+ $token = '' unless($token);
$username = $ENV{REMOTE_USER};
rddb::closedb($dbh);
}