Fixed bug where in broken user_version implementations, DDL version nearly always set to '7' (missing else in else if)
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Fri, 29 Mar 2019 08:38:26 +0100
changeset 3418f39664cf37ff
parent 3402 2ed9ae4bb6e8
child 3423 70b418f53ed6
Fixed bug where in broken user_version implementations, DDL version nearly always set to '7' (missing else in else if)
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Wed Mar 27 15:34:17 2019 +0100
     1.2 +++ b/src/pEpEngine.c	Fri Mar 29 08:38:26 2019 +0100
     1.3 @@ -796,7 +796,7 @@
     1.4              if (table_contains_column(_session, "identity", "timestamp") > 0) {
     1.5                  version = 8;
     1.6              }            
     1.7 -            if (table_contains_column(_session, "person", "is_pep_user") > 0) {
     1.8 +            else if (table_contains_column(_session, "person", "is_pep_user") > 0) {
     1.9                  version = 7;
    1.10              }            
    1.11              else if (table_contains_column(_session, "identity", "is_own") > 0) {