|
@@ -34,8 +34,11 @@
|
|
|
}
|
|
|
}
|
|
|
$dayInProgram = (strtotime($d) - strtotime($firstDateEverSeenByAnyone)) / (60 * 60 * 24);
|
|
|
- $dayInMcpProgram = (strtotime($d) - strtotime($firstDateEverSeenByMcpTypePro)) / (60 * 60 * 24);
|
|
|
- $daysSinceLastMcpVisit = null;
|
|
|
+ $dayInMcpProgram = null;
|
|
|
+ if($firstDateEverSeenByMcpTypePro){
|
|
|
+ $dayInMcpProgram = (strtotime($d) - strtotime($firstDateEverSeenByMcpTypePro)) / (60 * 60 * 24);
|
|
|
+ }
|
|
|
+ $daysSinceLastMcpTypeVisit = null;
|
|
|
if($note->hcpPro->is_mcp){
|
|
|
$daysSinceLastMcpTypeVisit = (strtotime($d) - strtotime($loopLastDateSeenByMcpTypePro)) / (60 * 60 * 24);
|
|
|
}
|