File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 107107 $ notif = $ order ['notif ' ];
108108
109109 $ response = getJson ($ server_id )->obj ;
110+ $ found = false ;
110111 foreach ($ response as $ row ){
111112 if ($ inbound_id == 0 ) {
112113 $ clients = json_decode ($ row ->settings )->clients ;
115116 $ up = $ row ->up ;
116117 $ down = $ row ->down ;
117118 $ expiryTime = $ row ->expiryTime ;
119+ $ found = true ;
118120 break ;
119121 }
120122 }else {
135137 $ enable = $ clientsStates [$ emailKey ]->enable ;
136138 $ down = $ clientsStates [$ emailKey ]->down ;
137139 $ expiryTime = $ clientsStates [$ emailKey ]->expiryTime ;
140+ $ found = true ;
138141 break ;
139142 }
140143 }
141144 }
142145 }
143146 }
147+ if (!$ found ) continue ;
144148 $ leftgb = round ( ($ total - $ up - $ down ) / 1073741824 , 2 );
145149 $ now_microdate = floor (microtime (true ) * 1000 );
146150 if ($ expiryTime <= $ now_microdate ) $ send = true ; elseif ($ leftgb <= 0 ) $ send = true ;
You can’t perform that action at this time.
0 commit comments