Skip to content

Commit 0db0471

Browse files
TjoostenTjoosten
authored andcommitted
replace or by ||
The or operator does not have the same precedence as ||. This could lead to unexpected behavior, use || instead.
1 parent 7b69e66 commit 0db0471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ protected function _prepare_digest_auth()
14741474

14751475
// For digest authentication the library function should return already stored md5(username:restrealm:password) for that username @see rest.php::auth_library_function config
14761476
$A1 = $this->_check_login($digest['username'], TRUE);
1477-
if ( ! array_key_exists('username', $digest) or ! $A1 ) {
1477+
if ( ! array_key_exists('username', $digest) || ! $A1 ) {
14781478
$this->_force_login($uniqid);
14791479
}
14801480

0 commit comments

Comments
 (0)