@@ -410,8 +410,13 @@ public function calcExtraLagna(array $lagnaKeys = null)
410
410
$ Lagna = new Lagna ($ this );
411
411
$ generateLagna = $ Lagna ->generateLagna ($ lagnaKeys );
412
412
413
+ if (!isset ($ this ->data [self ::BLOCK_VARGA ])) {
414
+ $ this ->calcVargaData ([Varga::KEY_D1 ]);
415
+ }
416
+
413
417
foreach ($ generateLagna as $ key => $ data ) {
414
418
$ this ->data [self ::BLOCK_LAGNA ][$ key ] = $ data ;
419
+ $ this ->data [self ::BLOCK_VARGA ][Varga::KEY_D1 ][self ::BLOCK_LAGNA ][$ key ] = $ data ;
415
420
}
416
421
return $ this ;
417
422
}
@@ -428,8 +433,13 @@ public function calcBhavaArudha(array $arudhaKeys = null, array $options = null)
428
433
$ Arudha = new Arudha ($ this , $ options );
429
434
$ generateArudha = $ Arudha ->generateArudha ($ arudhaKeys );
430
435
436
+ if (!isset ($ this ->data [self ::BLOCK_VARGA ])) {
437
+ $ this ->calcVargaData ([Varga::KEY_D1 ]);
438
+ }
439
+
431
440
foreach ($ generateArudha as $ key => $ data ) {
432
441
$ this ->data [self ::BLOCK_LAGNA ][$ key ] = $ data ;
442
+ $ this ->data [self ::BLOCK_VARGA ][Varga::KEY_D1 ][self ::BLOCK_LAGNA ][$ key ] = $ data ;
433
443
}
434
444
return $ this ;
435
445
}
@@ -445,8 +455,13 @@ public function calcUpagraha(array $upagrahaKeys = null)
445
455
$ Upagraha = new Upagraha ($ this );
446
456
$ generateUpagraha = $ Upagraha ->generateUpagraha ($ upagrahaKeys );
447
457
458
+ if (!isset ($ this ->data [self ::BLOCK_VARGA ])) {
459
+ $ this ->calcVargaData ([Varga::KEY_D1 ]);
460
+ }
461
+
448
462
foreach ($ generateUpagraha as $ key => $ data ) {
449
463
$ this ->data [self ::BLOCK_UPAGRAHA ][$ key ] = $ data ;
464
+ $ this ->data [self ::BLOCK_VARGA ][Varga::KEY_D1 ][self ::BLOCK_UPAGRAHA ][$ key ] = $ data ;
450
465
}
451
466
return $ this ;
452
467
}
0 commit comments