diff options
author | Steve Clay <steve@mrclay.org> | 2013-05-05 17:55:27 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2013-05-05 17:55:27 -0400 |
commit | 8585af507a98ba1124220b9c266a8377aa490693 (patch) | |
tree | e85bf4696e250cb0556453cb80fc34fdc54d7409 /engine/classes/ElggAttributeLoader.php | |
parent | 0726860ca04b4f2ed9b010cc5c5692c23c32e2d2 (diff) | |
download | elgg-8585af507a98ba1124220b9c266a8377aa490693.tar.gz elgg-8585af507a98ba1124220b9c266a8377aa490693.tar.bz2 |
Fixes #5435: Allows upgrade to boot on old schemas
Diffstat (limited to 'engine/classes/ElggAttributeLoader.php')
-rw-r--r-- | engine/classes/ElggAttributeLoader.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engine/classes/ElggAttributeLoader.php b/engine/classes/ElggAttributeLoader.php index d1e15008e..b91e4b88a 100644 --- a/engine/classes/ElggAttributeLoader.php +++ b/engine/classes/ElggAttributeLoader.php @@ -209,11 +209,8 @@ class ElggAttributeLoader { } } - // loading complete: re-check missing and check type - if (($was_missing_primaries && $this->isMissingPrimaries($row)) - || ($was_missing_secondaries && $this->isMissingSecondaries($row))) { - throw new LogicException('Attribute loaders failed to return proper attributes'); - } + // Note: If there are still missing attributes, we're running on a 1.7 or earlier schema. We let + // this pass so the upgrades can run. // guid needs to be an int http://trac.elgg.org/ticket/4111 $row['guid'] = (int) $row['guid']; |