File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7171 $ where [] = 'client_id = ' .$ app ->functions ->intval ($ tmp_client_id );
7272 }
7373 if (!empty ($ where )) $ where_clause = ' AND ( ' .implode (' OR ' , $ where ).') ' ;
74- $ sql = "SELECT * FROM client WHERE email != '' " .$ where_clause ;
74+ $ sql = "SELECT * FROM client WHERE canceled != 'y' AND email != '' " .$ where_clause ;
7575 } else {
76- $ sql = "SELECT * FROM client WHERE 0 " ;
76+ $ sql = "SELECT * FROM client WHERE canceled != 'y' " ;
7777 }
7878 } else {
7979 //* Select all clients and resellers
8080 if ($ _SESSION ["s " ]["user " ]["typ " ] == 'admin ' ){
81- $ sql = "SELECT * FROM client WHERE email != '' " ;
81+ $ sql = "SELECT * FROM client WHERE email != '' AND canceled != 'y' " ;
8282 } else {
8383 $ client_id = $ app ->functions ->intval ($ _SESSION ['s ' ]['user ' ]['client_id ' ]);
8484 if ($ client_id == 0 ) die ('Invalid Client ID. ' );
85- $ sql = "SELECT * FROM client WHERE email != '' AND parent_client_id = ' $ client_id' " ;
85+ $ sql = "SELECT * FROM client WHERE email != '' AND canceled != 'y' AND parent_client_id = ' $ client_id' " ;
8686 }
8787 }
8888
You can’t perform that action at this time.
0 commit comments