Skip to content

Commit

Permalink
Merge pull request parse-community#129 from yutaro-ihara/fix-cannot_g…
Browse files Browse the repository at this point in the history
…et_zero_value

cannot get false property
  • Loading branch information
gfosco committed Jul 8, 2015
2 parents bca42b2 + 04a5fc9 commit b654ba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Parse/ParseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ public static function initialize($app_id, $rest_key, $master_key, $enableCurlEx
if (! ParseObject::hasRegisteredSubclass('_Role')) {
ParseRole::registerSubclass();
}

if (! ParseObject::hasRegisteredSubclass('_Installation')) {
ParseInstallation::registerSubclass();
}

ParseSession::registerSubclass();
self::$applicationId = $app_id;
self::$restKey = $rest_key;
Expand Down Expand Up @@ -166,7 +166,7 @@ public static function _decode($data)
}
}

if (!$data && !is_array($data)) {
if (!isset($data) && !is_array($data)) {
return;
}

Expand Down

0 comments on commit b654ba8

Please sign in to comment.