We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c24be6b commit d4fd8bdCopy full SHA for d4fd8bd
lib/api/xmlrpc/v1/xmlrpc.class.php
@@ -23,8 +23,6 @@
23
/**
24
* IXR is the class used for the XML-RPC server
25
*/
26
-use const Collator\OFF;
27
-
28
define("TL_APICALL", 'XML-RPC');
29
30
require_once '../../../../config.inc.php';
@@ -1541,7 +1539,12 @@ protected function _isDevKeyValid($devKey)
1541
1539
$this->devKey = $this->dbObj->prepare_string($devKey);
1542
1540
$query = "SELECT id FROM {$this->tables['users']} WHERE script_key='{$this->devKey}'";
1543
$this->userID = $this->dbObj->fetchFirstRowSingleColumn($query, "id");
1544
- return null == $this->userID;
+
+ if (null == $this->userID) {
+ return false;
1545
+ } else {
1546
+ return true;
1547
+ }
1548
}
1549
1550
0 commit comments