Skip to content

Commit

Permalink
Update as per robot overlords
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwhite4 committed Jan 14, 2020
1 parent 0dc48fe commit 0943e10
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions classes/DataWarehouse/Access/RawData.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function getRawDataRealms(XDUser $user)
$realms = array();

$raw = XdmodConfiguration::factory('rawstatistics.json', CONFIG_DIR)->toStdClass();

if (!property_exists($raw, 'realms')) {
return $realms;
}
Expand All @@ -25,10 +25,8 @@ public static function getRawDataRealms(XDUser $user)

foreach($raw->realms as $realmConfig)
{
if (property_exists($realmConfig, 'raw_data')) {
if ($realmConfig->raw_data === false) {
continue;
}
if (property_exists($realmConfig, 'raw_data') && $realmConfig->raw_data === false) {
continue;
}

if (in_array($realmConfig->name, $allowedRealms)) {
Expand Down

0 comments on commit 0943e10

Please sign in to comment.