Commit e602d081 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix.

parent 8468dbb7
......@@ -159,13 +159,13 @@ function ConsoleAuthObject($uid, $nodeid, $console)
#
$fp = fopen($file, "r");
if (! $fp) {
TBERROR("Error opening $file", 0);
TBERROR("Error opening $file", 1);
return null;
}
$key = fread($fp, 128);
fclose($fp);
if (!$key) {
TBERROR("Could not get key from $file", 0);
TBERROR("Could not get key from $file", 1);
return null;
}
$key = chop($key);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment