Skip to content

Commit cc81f8e

Browse files
author
Dan Richelson
committed
add better check for blank user key
1 parent 87f37d4 commit cc81f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaunchDarkly/FeatureFlag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function isOn() {
8383
*/
8484
public function evaluate($user, $featureRequester) {
8585
$prereqEvents = array();
86-
if (is_null($user) || strlen($user->getKey()) === 0) {
86+
if (is_null($user) || is_null($user->getKey())) {
8787
return new EvalResult(null, $prereqEvents);
8888
}
8989
if ($this->isOn()) {

0 commit comments

Comments
 (0)