Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alixaxel committed Dec 29, 2013
1 parent 246d892 commit db9d69f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,7 @@ public static function Reply($data)

foreach ($options as $option)
{
if (defined('JSON_' . $option) === true)
{
$bitmask |= constant('JSON_' . $option);
}
$bitmask |= (defined('JSON_' . $option) === true) ? constant('JSON_' . $option) : 0;
}

if (($result = json_encode($data, $bitmask)) !== false)
Expand Down

0 comments on commit db9d69f

Please sign in to comment.