For closed systems, still handle login through the modal
[citadel.git] / webcit / webcit.c
index 3c094cd1e0c1fd1490640f4314a9e48419b1d5c4..5d213a5f0389bd036b7ebc3e92d175a240a10110 100644 (file)
@@ -511,7 +511,7 @@ void push_destination(void) {
 void pop_destination(void) {
        wcsession *WCC = WC;
 
-       if (!WCC) {
+       if ( (!WCC) || (WCC->PushedDestination == NULL) || (StrLength(WCC->PushedDestination) == 0) ) {
                do_welcome();
                return;
        }