Skip to content

Commit d4fd8bd

Browse files
committed
Minor fixes
xmlrpc.class.php adjusted
1 parent c24be6b commit d4fd8bd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/api/xmlrpc/v1/xmlrpc.class.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
/**
2424
* IXR is the class used for the XML-RPC server
2525
*/
26-
use const Collator\OFF;
27-
2826
define("TL_APICALL", 'XML-RPC');
2927

3028
require_once '../../../../config.inc.php';
@@ -1541,7 +1539,12 @@ protected function _isDevKeyValid($devKey)
15411539
$this->devKey = $this->dbObj->prepare_string($devKey);
15421540
$query = "SELECT id FROM {$this->tables['users']} WHERE script_key='{$this->devKey}'";
15431541
$this->userID = $this->dbObj->fetchFirstRowSingleColumn($query, "id");
1544-
return null == $this->userID;
1542+
1543+
if (null == $this->userID) {
1544+
return false;
1545+
} else {
1546+
return true;
1547+
}
15451548
}
15461549

15471550
/**

0 commit comments

Comments
 (0)